In my destructor of my derived wxApp is everything ok. First delete, then i set my variable to NULL.
But after leaving the destructor it shows an unhandled exception...violation reading location 0x000000e8.
It stops at xstring::bool empty, that comes from wxString::empty(), from wxAppConsole::GetAppDisplayName(), from wxLogGui::GetTitle(), from wxLogGui::Flush(), from wxLogGui::FlushActive.
In the OnInit-Function of my i set the logtarget to a file with this code:
Code: Select all
// set logging logging to file
m_logFile = fopen(logfilename.GetData(), "a");
m_StandardLog = new wxLogStderr(m_logFile);
wxLog::SetActiveTarget(m_StandardLog);
Thank you