Push through exception insetad of just string.

This commit is contained in:
rassilon
2015-04-25 00:04:38 -04:00
parent d8b707fb4b
commit 2602605bae
+3 -3
View File
@@ -25,8 +25,8 @@ namespace CefSharp
// in order to report a .net exception from a CEF thread.
static void ReportUnhanledException(Object ^state)
{
String ^msg = dynamic_cast<String^>(state);
throw gcnew InvalidOperationException(msg);
Exception ^e = dynamic_cast<Exception^>(state);
throw gcnew InvalidOperationException(gcnew String(L"CefTaskWrapper caught an unexpected exception. This should never happen, please contact CefSharp for assistance."), e);
}
public:
@@ -63,7 +63,7 @@ namespace CefSharp
// with the exception.
ThreadPool::UnsafeQueueUserWorkItem(
gcnew WaitCallback(&CefTaskWrapper::ReportUnhanledException),
static_cast<Object^>(msg));
static_cast<Object^>(e));
}
};