Skip to content

DLL initialization routine failed #1708

@DragonOsman

Description

@DragonOsman
  • Node.js Version: v11.6.0
  • OS: Windows 10 Home Single Language version 1803 build 17134.472
  • Scope (install, code, runtime, meta, other?): running addon with home-built Node.js
  • Module (and version) (if relevant):

I can't tell how to build Zlib without also creating zlib.dll. And when building Node.js I have to link against that DLL when building the project file node.vcxproj. But it won't do that when I don't also specify the dll argument when running vcbuild. That gave me both node.lib and node.dll when I built Node.js.

I was able to successfully build an addon with that using node-gyp, but when I tried to run the Node.js app using the addon, I got an error message that, among other things, also said that a DLL initialization routine had failed. So my guess is that it couldn't initialize node.dll. Is there a way to fix this? Thanks in advance.

Note: I uninstalled that home-built one and downloaded the MSI installer from the Nodejs website so I could use that to build and run the addon. I'll have to build Node.js again. Before, I forgot to put node.dll inside the directory that seemed like it would be copied into my Nodejs installation directory when I run the MSI installer I'd built (yes, I had to build the MSI installer as well so that Node would be installed in the directory I'd specified for the --prefix setting). I put node.dll in the installation directory after trying to run node.exe and seeing an error message saying that it can't find node.dll (the installation directory I had the MSI installer put it in was the default one, C:/Program Files/nodejs, and the directory I built Node.js in was the Node.js source tree directory, in the top level of the C:/ directory). This time I should probably try to get node.dll copied into the installation directory with the rest of the stuff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions