Changeset 2307

Show
Ignore:
Timestamp:
03/09/10 13:52:01 (5 months ago)
Author:
JO94
Message:

fixed exception handling

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FalconView/trunk/public/fvw_core/GeodataDataSources/LibkmlDataSource.cpp

    r2306 r2307  
    602602         } 
    603603 
    604            // make sure only one person writing to the file at a time 
    605            HANDLE h = ::CreateMutexW(NULL, false, L"MaybeDumpKMLSem"); 
     604         // make sure only one person writing to the file at a time 
     605         HANDLE h = ::CreateMutexW(NULL, false, L"MaybeDumpKMLSem"); 
    606606         if (h == NULL) 
    607607         { 
     
    609609            ASSERT(0); 
    610610         } 
    611            DWORD d = ::WaitForSingleObject(h, INFINITE); 
    612            _ASSERT(d == WAIT_OBJECT_0); 
     611         DWORD d = ::WaitForSingleObject(h, INFINITE); 
     612         _ASSERT(d == WAIT_OBJECT_0); 
    613613 
    614614         try 
     
    619619            f.close(); 
    620620         } 
    621          catch (...) { } // rare exception to rule about ignoring exceptions 
     621         catch (std::exception) { } // rare exception to rule about ignoring exceptions 
    622622 
    623623         // release mutex 
    624624         ::ReleaseMutex(h); 
    625            ::CloseHandle(h); 
    626       } 
    627    } 
    628    catch (...) { } // rare exception to rule about ignoring exceptions 
     625         ::CloseHandle(h); 
     626      } 
     627   } 
     628   catch (std::exception) { } // rare exception to rule about ignoring exceptions 
    629629} 
    630630