to_string_t throws exception during release mode

Aug 15, 2013 at 8:28 AM
I tried the following under release mode

std::string urlJob("Some Url");

utility::string_t tmpS = to_string_t( urlJob );

It throws an exception while trying to allocate memory. I tried this on debug mode but it is ok. Any ideas?
Aug 15, 2013 at 3:13 PM

With 99% likelihood, you are mixing release and debug binaries. Look into what DLLs you are loading at runtime, and see if that isn't the case.

In the next release, we will be adding a 'd' to the Debug mode version of the C++ REST DLL to minimize this issue.

The root issue is that many of the STL data types (string included) are slightly different in Release and Debug mode, and therefore not binary compatible.
Aug 16, 2013 at 2:17 AM
yes! You are right! Thanks!