-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash calling c# dll's method from native addon #1068
Comments
From @jasnell on January 16, 2018 18:58 @MatteoMeil ... your best bet for this type of question would be to ask over in the https://github.com/nodejs/help repository. |
I’m not a Windows or C# expert, so I’m not sure what kind of help I can provide. But on a very general level: Can you give more information than saying it ”crashes”? Did you try running your code (i.e. |
@addaleax I tried to debug with VS2017 following these steps:
|
I was able to reproduce the problem (terminal outputs nothing) with the latest node (I did not try 7.10.x as it is not LTS anyways)
@MatteoMeil - can you confirm if this is happening at your end too? I am wondering whether the top level executable (node.exe) too should be built with /cc @nodejs/platform-windows |
@gireeshpunathil Yes, I can confirm this. |
Have you tried https://github.com/tjanczuk/edge? |
@benjamingr |
Maybe @tjanczuk can weigh in? |
/cc @nodejs/platform-windows again. Questions:
|
Not officially as far as I know. |
Closing as answered: No support exists for CLR. If there is a strong use case exists for this, please you may raise a feature request in nodejs/node repo. Also, if you have ideas on how to bring in support, PRs welcome! |
From @MatteoMeil on January 16, 2018 18:26
I tried to build a C# dll(.NET Framework 4) with simple Hello World method in it. This is the code:
Then i tried to call this dll from C++ but terminal outputs nothing. I did this way:
C++:
binding.gyp
Files in folder:
Copied from original issue: nodejs/node#18183
The text was updated successfully, but these errors were encountered: