-
Notifications
You must be signed in to change notification settings - Fork 46
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
dll could not be initialized in module.js #48
Comments
To be more explicit with the error message, it is: |
Sorry, didn't mean to close this!! |
Sorry, I don't really have any experience with compiling addons for use with nw.js. |
Thanks for the quick reply - I will see if I can initialize cap under Windows just from node.js. I didn't think that nw.js would be the problem. I used nw.js with cap on the Mac and it worked fine. |
IIRC nw.js has its own special method of compiling addons (using Using |
This all makes sense. I will try node and cap tomorrow. Thanks for the help! |
Using cap directly with node on Windows does indeed take me beyond the 'require' statement where my error occurred. I do need the nw capabilities, and have posted the following on the nw.js site: I have been successfully using the module cap in an osx node/nw program to receive and transmit Ethernet packets. I am porting the program to Windows, and have an issue with the cap module. I am using node.js v6.11.0 and nw.js v0.23.5. Windows 8.1. A problem arises at the statement: module.js:640 Uncaught Error: A dynamic link library (DLL) initialization routine failed. The statement is not a problem within a node.js program, and the cap module installs fine (Python 2.7 and Visual C++ installed). I have done the following to resolve the issue:
Possibly someone in this group has had a similar experience and resolved it - which would be wonderful! |
@RichardFoss Its just about "prebuild" the target package "cap" (https://www.npmjs.com/package/prebuild). So, that issue has nothing to do with "cap", but the way packages are compiled to the target OS. |
Thanks robsontenorio! I managed to resolve my issue and have meant to post my solution to the group in case anyone else has a similar dilemma. The steps I took are given below. Step d is the "similar tool" that you are referring to. For native node modules (for example cap), you will: |
Thanks for the information @robsontenorio and @RichardFoss |
Hi,
I am using node v6.11.0 together with nw.js. I have installed cap successfully, and am now wanting to use it to send AVDECC ethernet packets. When I try to initialize with c = new Cap(); I get an error message indicating that a dll cannot be initialized in module.js.
I have used cap successfully on the Mac and am now porting the same code to Windows. I have Visual Studio 2015 enterprise edition installed.
Any idea what might be causing this run time message?
Thanks!
The text was updated successfully, but these errors were encountered: