Fatal error when compiling with /MD

Sep 30, 2014 at 10:44 AM
Hi

I have a project where i'am using Casablanca, all runs as expected if i compile with "/MDd" but if i try a release compile ("/MD") my library crash's when tries to instantiate a http_client object.

Before that a conversion between wstring and string_t does not throw any exception.

Any ideas?


Thanks on advance

Desbaratizador
Coordinator
Sep 30, 2014 at 9:57 PM
Hi Desbaratizador,

I can't think of any answer off the top of my head. Could you give us more details; ideally:
  • Compiler version (open up the visual studio command prompt, do "cl.exe" and copy the result)
  • Target platform (desktop/xp/winrt, x86 vs x64)
  • A small snippet which reproduces the problem (including header files!)
This allows us to quickly and efficiently reproduce the problem and get you a solution.

Thanks,
roschuma
Oct 5, 2014 at 6:41 AM
Edited Oct 5, 2014 at 6:43 AM
Desbaratizador wrote:
I have a project where i'am using Casablanca, all runs as expected if i compile with "/MDd" but if i try a release compile ("/MD") my library crash's when tries to instantiate a http_client object.
Your application and Casablanca dll's should be compiled with same "Code Generation\Runtime Library" option
By default, Casablanca use "/MDd" for both (Debug & Release) configurations
Marked as answer by roschuma on 10/10/2014 at 4:37 PM