You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is a workaround to disable our check for throwing exception in SetupThread.
973
-
// We want to throw an exception for reverse p-invoke, and our assertion may fire if
974
-
// a unmanaged caller does not setup an exception handler.
975
-
CONTRACT_VIOLATION(ThrowsViolation); // WON'T FIX - This enables catastrophic failure exception in reverse P/Invoke - the only way we can communicate an error to legacy code.
976
-
977
-
HRESULT hr = S_OK;
978
-
Thread* pThread = SetupThreadNoThrow(&hr);
979
-
if (pThread == NULL)
980
-
{
981
-
// Creating Thread failed, and we need to throw an exception to report status.
982
-
// It is misleading to use our COM+ exception code, since this is not a managed exception.
0 commit comments