how do i fix this node_dlang error?
Mike Parker
aldacron at gmail.com
Tue Jun 8 00:00:50 UTC 2021
On Monday, 7 June 2021 at 22:24:03 UTC, Jack wrote:
>
> I think the entry point function is ```void atStart(napi_env
> env) {}``` so there's no DllMain...
DLLMain is not strictly required. It's called by the system
loader when the DLL is first loaded into the process. The
MainFunction for node is just a means for having a cross-platform
approach to initialization: node will load your shared library
then call the MainFunction. So you can initialize the runtime in
DLLMain or in your atStart function. Shouldn't matter.
Your problem may be unrelated to D, though. It appears to be a
common error when developing native code for Electron. Googling
for "electron {paste error message here}" or for "electron dll
initialization" turns up several results.
Some cursory reading shows that the issue may be a version
mismatch between the version of node the dll was linked with and
that used by Electron.
More information about the Digitalmars-d-learn
mailing list