Fatal exception raised for release, wxXmlResource::GetXRCID

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
kipade
Earned some good credits
Earned some good credits
Posts: 126
Joined: Fri Nov 11, 2011 2:45 am
Location: China

Fatal exception raised for release, wxXmlResource::GetXRCID

Post by kipade »

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
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
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Fatal exception raised for release, wxXmlResource::LoadF

Post by doublemax »

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!
kipade
Earned some good credits
Earned some good credits
Posts: 126
Joined: Fri Nov 11, 2011 2:45 am
Location: China

Re: Fatal exception raised for release, wxXmlResource::LoadF

Post by kipade »

Thanks for your replly. I found the crash dues to wxXmlResource::DoGetXRCID

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); }
In this function, the heap was damaged.
Slackware GNU/Linux x86_64
wxWidgets-3.3.0
kipade
Earned some good credits
Earned some good credits
Posts: 126
Joined: Fri Nov 11, 2011 2:45 am
Location: China

Re: Fatal exception raised for release, wxXmlResource::LoadF

Post by kipade »

because mb_str() function.
Slackware GNU/Linux x86_64
wxWidgets-3.3.0
Post Reply