Version
16.16.0
Platform
Windows
Subsystem
No response
What steps will reproduce the bug?
First, compile Node.js via vcbuild.bat dll, link the libnode.lib libnode.dll in a c++ program.
Then, load .node with such asprocess.dlopen(mod, 'xxx\\node_modules\\sqlite3\\lib\\binding\\napi-v6-win32-unknown-x64\\node_sqlite3.node.
or using require('sqlite3') will be the same.
How often does it reproduce? Is there a required condition?
100%
What is the expected behavior? Why is that the expected behavior?
can load the .node
What do you see instead?
Error Procedure not found is thrown.
different node addon will throw this error in different position
sqlite3 will throw the error in LoadLibraryExW
a hello world addon (written it following doc) will throw the error in DloadAcquireSectionWriteAccess
Additional information
- If I compile node.js to a exe, all the code and configure are the same. No error will be thrown in
.node loading.
- If I embed node.js in a macos C++ program. No error will be thrown in
.node loading.
- I confirm that the node version of my node.js source code for compiling the
libnode.dll, and the node version for doing node-gyp install are the same.
Version
16.16.0
Platform
Windows
Subsystem
No response
What steps will reproduce the bug?
First, compile Node.js via
vcbuild.bat dll, link the libnode.lib libnode.dll in a c++ program.Then, load .node with such as
process.dlopen(mod, 'xxx\\node_modules\\sqlite3\\lib\\binding\\napi-v6-win32-unknown-x64\\node_sqlite3.node.or using
require('sqlite3')will be the same.How often does it reproduce? Is there a required condition?
100%
What is the expected behavior? Why is that the expected behavior?
can load the
.nodeWhat do you see instead?
Error
Procedure not foundis thrown.different node addon will throw this error in different position
sqlite3will throw the error inLoadLibraryExWa hello world addon (written it following doc) will throw the error in
DloadAcquireSectionWriteAccessAdditional information
.nodeloading..nodeloading.libnode.dll, and the node version for doingnode-gyp installare the same.