Changeset 563


Ignore:
Timestamp:
08/26/08 09:07:08 (11 years ago)
Author:
Eoin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Halite.cpp

    r561 r563  
    110110void num_active(int) {} 
    111111 
    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  
    121112int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 
    122113{ 
    123  
    124114        try  
    125115        { 
    126         ::SetUnhandledExceptionFilter(&MyUnhandledExceptionFilter); 
    127  
    128116         
    129117        boost::filesystem::path::default_name_check(boost::filesystem::native); 
     
    140128        { 
    141129                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)));           
    143131        } 
    144132         
Note: See TracChangeset for help on using the changeset viewer.