Debugging Mode Error

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
jamal zafar
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Jun 21, 2011 6:36 am

Debugging Mode Error

Post by jamal zafar » Wed Jul 27, 2011 7:17 am

when i run my application in debug mode, the application terminates in an unusual way and the controls goes to the following function (buffer.h file):

// placeholder for NULL string, to simplify this code
static Data *GetNullData()
{
return static_cast<Data *>(wxPrivate::GetUntypedNullData());
}

sometimes while application is running, it crashes and the control goes to the following line (in appbase.cpp):

#ifdef __WXDEBUG__

static void LINKAGEMODE SetTraceMasks()
{
#if wxUSE_LOG
wxString mask;
if ( wxGetEnv(wxT("WXTRACE"), &mask) )
{
wxStringTokenizer tkn(mask, wxT(",;:"));
while ( tkn.HasMoreTokens() )
wxLog::AddTraceMask(tkn.GetNextToken());
}
#endif // wxUSE_LOG
}



I didn't understand why this happens. Kindly help me with this.

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: Debugging Mode Error

Post by Auria » Wed Jul 27, 2011 12:28 pm

Hi,

please use a debugger and find the entire backtrace. Especially of interest is where in your own code the crash happens
"Keyboard not detected. Press F1 to continue"
-- Windows

Post Reply