- wxMessageBox(_T("Program has crashed and will terminate."),
- _T("wxExcept Sample"), wxOK | wxICON_ERROR);
+ wxMessageBox(wxT("Program has crashed and will terminate."),
+ wxT("wxExcept Sample"), wxOK | wxICON_ERROR);
+}
+
+#ifdef __WXDEBUG__
+
+void MyApp::OnAssert(const wxChar *file,
+ int line,
+ const wxChar *cond,
+ const wxChar *msg)
+{
+ // we don't have anything special to do here
+ wxApp::OnAssert(file, line, cond, msg);