-
Notifications
You must be signed in to change notification settings - Fork 137
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
Windows (Visual Studio) use Multi-threaded Debug/Release #208
Comments
@bromix Can you try to put this in the top of your CMakeLists.txt? (I ran into the same issue)
|
@japj See my comment ;)
This solution worked for me, so the setting also: The runtime (Windows only) must be linked statically and not dynamically. |
@japj Sadly this workaround is for windows only |
Is there any solution for /MD build . |
I believe this is crash is only a problem when nodejs and your module are built with different versions of MSVC, and your module is built as /MD. So I don't think there is a good solution other than to build as /MT. In v7.0.0, cmake-js is injecting |
I encountered a strange problem while using ifstream or stringstream. I'm implementing a function to read settings for an application from an ini file and return the settings as an object.
But as soon as the stringstream is declared, I get a heap corruption when leaving the scope of the function. Has this to do with threading and if so, how can I secure this? The documentation is not clear for me how to accomplish this. Below is a simplified implementation of my problem.
I'm working with Node 13.10.1
The solution to this problem is, to set the project to Multi-threaded Debug/Release (not DLL)
The text was updated successfully, but these errors were encountered: