summaryrefslogtreecommitdiff
path: root/library/iconBuffer.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:50 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:50 +0200
commit4ecfd41e36533d858c98d051ef70cab80e69e972 (patch)
treeca07d8745967d2c6a7123a5d32269cfbfaa7bd6c /library/iconBuffer.cpp
parent2.2 (diff)
downloadFreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.gz
FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.bz2
FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.zip
2.3
Diffstat (limited to 'library/iconBuffer.cpp')
-rw-r--r--library/iconBuffer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/iconBuffer.cpp b/library/iconBuffer.cpp
index f73164e0..cf21104e 100644
--- a/library/iconBuffer.cpp
+++ b/library/iconBuffer.cpp
@@ -1,12 +1,12 @@
#include "iconBuffer.h"
#include <wx/thread.h>
-#include "../shared/globalFunctions.h"
#include <wx/bitmap.h>
#include <wx/msw/wrapwin.h> //includes "windows.h"
#include <wx/msgdlg.h>
#include <wx/icon.h>
#include <map>
#include <queue>
+#include <stdexcept>
using FreeFileSync::IconBuffer;
@@ -53,10 +53,10 @@ WorkerThread::WorkerThread(IconBuffer* iconBuff) :
iconBuffer(iconBuff)
{
if (Create() != wxTHREAD_NO_ERROR)
- throw RuntimeException(wxString(wxT("Error creating icon buffer worker thread!")));
+ throw std::runtime_error("Error creating icon buffer worker thread!");
if (Run() != wxTHREAD_NO_ERROR)
- throw RuntimeException(wxString(wxT("Error starting icon buffer worker thread!")));
+ throw std::runtime_error("Error starting icon buffer worker thread!");
//wait until thread has aquired mutex
bool hasMutex = false;
@@ -115,9 +115,9 @@ wxThread::ExitCode WorkerThread::Entry()
doWork();
}
}
- catch (RuntimeException& e) //exceptions must be catched per thread
+ catch (const std::exception& e) //exceptions must be catched per thread
{
- wxMessageBox(e.show());
+ wxMessageBox(wxString::From8BitData(e.what()), _("An exception occured!"), wxOK | wxICON_ERROR);
return 0;
}
}
bgstack15