Invalid access to memory location


#1

I have a C++ dll which was built with vs2015,but when I try to use it in my electron app,the following error appears:

if I use it in nodejs,it works correctly.
my main.js:

const callback = require('./callback.node')
const electron = require('electron')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
const ipc = electron.ipcMain
const dialog = electron.dialog



var onlineWindow = null;

app.on('ready', function() {
  onlineWindow = new BrowserWindow({width: 800, height: 600});
  onlineWindow.loadURL('file://' + __dirname + './index.html');
});

electron : version 1.2.0
node : version 6.1.0
vs 2015