mathiask88 / node-snap7

node.js wrapper for snap7
MIT License
163 stars 59 forks source link

'Error: Module did not self-register.' with Worker Threads #45

Open shockingboring opened 5 years ago

shockingboring commented 5 years ago

see : https://github.com/nodejs/node/issues/21481 as @mattolson mentioned

-- any native addons that are loaded in both the parent and worker thread (i.e. loaded more than once in the same process) need to be context aware.

mathiask88 commented 5 years ago

This addon builds on NAN. As long NAN does not support context-awareness this won't happen. Thanks for reporting!

flacohenao commented 4 years ago

Any news on this?

mathiask88 commented 4 years ago

I am currently working on a NAPI rewrite of this addon to replace NAN. If I got the current functionality working I will have a look into this. NAPI should be capable of context-awareness. But don't expect this in the near future.