- Timestamp:
- 08/26/08 09:07:08 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Halite.cpp
r561 r563 110 110 void num_active(int) {} 111 111 112 LONG WINAPI MyUnhandledExceptionFilter(_EXCEPTION_POINTERS *ExceptionInfo)113 {114 std::wstring code = lexical_cast<std::wstring>(ExceptionInfo->ExceptionRecord->ExceptionCode);115 ::MessageBoxW(0, code.c_str(), L"Hey", 0);116 117 return EXCEPTION_CONTINUE_SEARCH;118 }119 120 121 112 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 122 113 { 123 124 114 try 125 115 { 126 ::SetUnhandledExceptionFilter(&MyUnhandledExceptionFilter);127 128 116 129 117 boost::filesystem::path::default_name_check(boost::filesystem::native); … … 140 128 { 141 129 hal::event_log.post(shared_ptr<hal::EventDetail>( 142 new hal::EventMsg(L"No registry entry found .")));130 new hal::EventMsg(L"No registry entry found, using portable mode", hal::event_logger::info))); 143 131 } 144 132
Note: See TracChangeset
for help on using the changeset viewer.