Jump to content
  • Advertisement
Sign in to follow this  
Tera_Dragon

std::string errors in release mode

This topic is 4436 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When building in release mode I get the run time error: "Microsoft Visual Studio C Runtime Library has detected a fatal error in Blank.exe." for the code std::string str = "string"; What's going on here?

Share this post


Link to post
Share on other sites
Advertisement
Are you passing STL objects over a DLL boundary? If so, are you using the DLL CRT? And if so, did you remember to set up the release build to use the DLL CRT too? I've managed to miss that a few times...

Share this post


Link to post
Share on other sites
I was including a .lib file built in debug mode. The lib had included <string> and it looks like that was causing the error. I built a release version of the lib and it solved the problem.
Is there a way to declare a class that is in a different namespace so that you don't have to include the header?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!