Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A dynamic link library (DLL) initialization routine failed #94

Open
wizzardio opened this issue Mar 14, 2019 · 3 comments
Open

A dynamic link library (DLL) initialization routine failed #94

wizzardio opened this issue Mar 14, 2019 · 3 comments

Comments

@wizzardio
Copy link

I have a win32 application for Card Reading (I also use nw.js) and in this application I need to include pcsclite. When I installed it I received an error : buffertools.node is not valid win32 application windows.

I used node-gyp to configure and build it via commands:

 node-gyp configure --arch=ia32 --target_platform=win32 -msvs_version=2015
 node-gyp build --arch=ia32 --target_platform=win32 -msvs_version=2015

This error disappeared and I received another:

A dynamic link library (DLL) initialization routine failed.
node_modules\buffertools\build\Release\buffertools.node

Maybe, someone will be able to give some hint how I can handle it?
I use:
node 9.11.1
npm 6.4.1
win 10 / 64

Please, let me know in case of any questions.

Thanks in advance.

@bnoordhuis
Copy link
Owner

--arch=... should match node -p process.arch. It probably should be 'x64' instead of 'ia32'.

@bnoordhuis
Copy link
Owner

Oh, and note that node.js v9.x is end of life. You should upgrade to the latest v10.x or v11.x.

@wizzardio wizzardio reopened this Mar 15, 2019
@wizzardio
Copy link
Author

sorry, I didn't want to close.
I tried to rebuild my project on win64 + libraries.
Also, I used 10.15.3 node and --arch=x64.

Same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants