wx_vc10 DLL Release has debug info?? Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
maxbld
Earned some good credits
Earned some good credits
Posts: 111
Joined: Wed Jan 30, 2013 10:49 pm

wx_vc10 DLL Release has debug info??

Post by maxbld » Mon Mar 14, 2016 2:54 pm

Dear all,

I just noticed that the copy of wxWidgets3.0.2 I downloaded has "generate debug info" set to Yes in configuration DLL Release. Is that normal or do I have to suppose it's been me who unadvertedly set it? Actually I'm using the DLLs obtained out of it in a project of mine that compiles, links, but when I launch the .exe, it just doesn't start. If I debug it, I see in the output window that it loads the symbols for the wx DLLs, and it throws an exception

Code: Select all

HEAP[calimero.exe]: Invalid address specified to RtlFreeHeap( 0000000002260000, 0000000001D73360 )
in the following call stack:

Code: Select all

>	wxbase30u_vc_x64_custom.dll!wxEntryReal(int & argc=119662, wchar_t * * argv=0x0000000001d36100)  Line 479 + 0x10 bytes	C++
 	wxbase30u_vc_x64_custom.dll!wxEntry(int & argc=9460301, wchar_t * * argv=0x000000013f450000)  Line 188 + 0xb bytes	C++
 	wxmsw30u_core_vc_x64_custom.dll!wxEntry(HINSTANCE__ * hInstance=0x0000000000000000, HINSTANCE__ * __formal=0x0000000000000000, HINSTANCE__ * __formal=0x0000000000000000, int nCmdShow=0)  Line 415 + 0x14 bytes	C++
Thanks in advance for any help, BR,
Max.

maxbld
Earned some good credits
Earned some good credits
Posts: 111
Joined: Wed Jan 30, 2013 10:49 pm

Re: wx_vc10 DLL Release has debug info??

Post by maxbld » Mon Mar 14, 2016 3:36 pm

Dear all,

I recompiled wxWidgets 302 without the debug info, but looks like that wasn't the issue. I did go in my application and set Runtime Library to "Multi-threaded DLL (/MD)" instead than Multi-threaded (/MT) and it started to work. But why that? I mean I'm compiling an .exe, not a DLL, why do I have to set it to /MD?

Thank you, BR,
Max.
Last edited by maxbld on Mon Mar 14, 2016 4:23 pm, edited 1 time in total.

maxbld
Earned some good credits
Earned some good credits
Posts: 111
Joined: Wed Jan 30, 2013 10:49 pm

Re: wx_vc10 DLL Release has debug info??

Post by maxbld » Mon Mar 14, 2016 4:21 pm

Dear all,

I just had to recall what does it mean Runtime Library... I googled it and understood what had I forgot, it's just whether do you link against msvcrt.dll "Multi-threaded DLL (/MD)" or msvcrt.lib "Multi-threaded (/MT)". Of course if wxWidgets are linked to msvcrt.dll, your app has to link to the same...

Dumb, me it's maybe the 8th time I do this mistake...

BR,
Max.

maxbld
Earned some good credits
Earned some good credits
Posts: 111
Joined: Wed Jan 30, 2013 10:49 pm

Re: wx_vc10 DLL Release has debug info??

Post by maxbld » Mon Mar 14, 2016 7:09 pm

maxbld wrote:Dear all,

I just had to recall what does it mean Runtime Library... I googled it and understood what had I forgot, it's just whether do you link against msvcrt.dll "Multi-threaded DLL (/MD)" or msvcrt.lib "Multi-threaded (/MT)". Of course if wxWidgets are linked to msvcrt.dll, your app has to link to the same...

Dumb me, it's maybe the 8th time I do this mistake...

BR,
Max.

Post Reply