Beispiel #1
0
 static void
 TIFFwxErrorHandler(const char* module, const char* fmt, va_list ap)
 {
     if (module != NULL)
         wxLogError(_("tiff module: %s"), module);
     wxVLogError((wxChar *) fmt, ap);
 }
Beispiel #2
0
void err(const char *formatString, ...) {
	va_list argPtr;
	va_start(argPtr, formatString);

	wxVLogError(formatString, argPtr);

	wxString msg = wxString::FormatV(formatString, argPtr);
	msg.Append("\n\n(to view full log run CapsKeySwitch in console)");
	wxMessageBox(msg, wxString("CapsKeySwitch error"), wxOK | wxICON_ERROR | wxCENTRE);

	exit(1);
}
Beispiel #3
0
void Logging::logError( const char *szFormat, ... ) const
{
	wxLog *pLogBak = wxLog::SetActiveTarget(m_pLogger);

	va_list marker;
	va_start( marker, szFormat );

	wxVLogError( wxConvertMB2WX(szFormat), marker );

	va_end( marker );

	wxLog::SetActiveTarget(pLogBak);
}
Beispiel #4
0
static void
TIFFwxErrorHandler(const char* module,
                   const char* WXUNUSED_IN_UNICODE(fmt),
                   va_list WXUNUSED_IN_UNICODE(ap))
{
    if (module != NULL)
        wxLogError(_("tiff module: %s"), wxString::FromAscii(module).c_str());

    // FIXME: as above
#if wxUSE_UNICODE
    wxLogError(_("TIFF library error."));
#else
    wxVLogError(fmt, ap);
#endif
}