You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
.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 inLoadLibraryExW
a hello world addon (written it following doc) will throw the error in
DloadAcquireSectionWriteAccess
Additional information
.node
loading..node
loading.libnode.dll
, and the node version for doingnode-gyp install
are the same.The text was updated successfully, but these errors were encountered: