This issue was only for ms platform
I usually use wxFrame as my toplevel window, rather than dialog, so i had not found shuch error for any other window class.
It works fine for debug version, but only crashed for release version.
The labrary will get an when it call GetID(), will got an error:
RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
So, if there was somebody else has encouter the same problem?
My OS was Windows7 32bits
Fatal exception raised for release, wxXmlResource::GetXRCID
Fatal exception raised for release, wxXmlResource::GetXRCID
Last edited by kipade on Sat Aug 23, 2014 4:06 pm, edited 1 time in total.
Slackware GNU/Linux x86_64
wxWidgets-3.3.0
wxWidgets-3.3.0
Re: Fatal exception raised for release, wxXmlResource::LoadF
This is hard to tell without a proper stacktrace. If it works in debug mode but not in release, my first guess would be an uninizialized variable somewhere or a wrong path so that the resource file is not found.
Use the source, Luke!
Re: Fatal exception raised for release, wxXmlResource::LoadF
Thanks for your replly. I found the crash dues to wxXmlResource::DoGetXRCID
In this function, the heap was damaged.
Code: Select all
static int GetXRCID(const wxString& str_id, int value_if_not_found = wxID_NONE)
{ return DoGetXRCID(str_id.mb_str(), value_if_not_found); }
Slackware GNU/Linux x86_64
wxWidgets-3.3.0
wxWidgets-3.3.0
Re: Fatal exception raised for release, wxXmlResource::LoadF
because mb_str() function.
Slackware GNU/Linux x86_64
wxWidgets-3.3.0
wxWidgets-3.3.0