On Tuesday, 8 June 2021 at 00:00:50 UTC, Mike Parker wrote:
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.

i see

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.

I'm googling this has been hours, none of the solutions worked for me, including rebuild the native module with electron-rebuild package

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.

the dll which I was just build with dub command? how I have a version mismatch if they're the very same file?

Reply via email to