CtrlCore: Win32 removed default exception handlers (to allow debugger to do its work)

git-svn-id: svn://ultimatepp.org/upp/trunk@7296 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-04-22 13:10:25 +00:00
parent ac44d284ef
commit c17f15d7fe
2 changed files with 5 additions and 8 deletions

View file

@ -24,9 +24,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR lpCmdLine, int nCmdS
try { \ try { \
GuiMainFn_(); \ GuiMainFn_(); \
} \ } \
catch(Exc e) { \
Panic(e); \
} \
UPP::Ctrl::ExitWin32(); \ UPP::Ctrl::ExitWin32(); \
UPP::AppExit__(); \ UPP::AppExit__(); \
return UPP::GetExitCode(); \ return UPP::GetExitCode(); \

View file

@ -693,11 +693,11 @@ LRESULT CALLBACK Ctrl::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
LLOG(NFormat("T+%d %s 0x%08x 0x%08x -> %s", msecs(ticks), msgname, (int)wParam, (int)lParam, wname)); LLOG(NFormat("T+%d %s 0x%08x 0x%08x -> %s", msecs(ticks), msgname, (int)wParam, (int)lParam, wname));
#endif #endif
} }
catch(Exc e) // catch(Exc e)
{ // {
LOG("Uncaught exception in WindowProc: " << e); // LOG("Uncaught exception in WindowProc: " << e);
Panic("Uncaught exception in WindowProc: " + (String)e); // Panic("Uncaught exception in WindowProc: " + (String)e);
} // }
} }
else else
l = DefWindowProc(hWnd, message, wParam, lParam); l = DefWindowProc(hWnd, message, wParam, lParam);