- Timestamp:
- 08/25/08 14:11:53 (11 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Halite.cpp
r560 r561 112 112 LONG WINAPI MyUnhandledExceptionFilter(_EXCEPTION_POINTERS *ExceptionInfo) 113 113 { 114 //hal::event_log.post(shared_ptr<hal::EventDetail>(115 // new hal::EventMsg(hal::wform(L"Initial Path: %1%.") % hal::app().initial_path())));116 117 114 std::wstring code = lexical_cast<std::wstring>(ExceptionInfo->ExceptionRecord->ExceptionCode); 118 115 ::MessageBoxW(0, code.c_str(), L"Hey", 0); … … 125 122 { 126 123 127 /*try128 { */124 try 125 { 129 126 ::SetUnhandledExceptionFilter(&MyUnhandledExceptionFilter); 130 127 … … 132 129 boost::filesystem::path::default_name_check(boost::filesystem::native); 133 130 134 /*try135 { */131 try 132 { 136 133 winstl::reg_key_w reg_path(HKEY_CURRENT_USER, L"SOFTWARE\\Halite"); 137 134 winstl::reg_value_w reg_path_value = reg_path.get_value(L"path"); … … 139 136 if (hal::app().get_local_appdata()) 140 137 hal::app().working_directory = hal::app().get_local_appdata().get()/L"Halite"; 141 /*}138 } 142 139 catch(...) 143 140 { 144 141 hal::event_log.post(shared_ptr<hal::EventDetail>( 145 142 new hal::EventMsg(L"No registry entry found."))); 146 } */143 } 147 144 148 145 if (!boost::filesystem::is_directory(hal::app().working_directory)) … … 234 231 return nRet; 235 232 236 /*}233 } 237 234 catch (const std::exception& e) 238 235 { … … 240 237 241 238 return -1; 242 } */243 } 239 } 240 }
Note: See TracChangeset
for help on using the changeset viewer.