Changeset 2307
- Timestamp:
- 03/09/10 13:52:01 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FalconView/trunk/public/fvw_core/GeodataDataSources/LibkmlDataSource.cpp
r2306 r2307 602 602 } 603 603 604 // make sure only one person writing to the file at a time605 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"); 606 606 if (h == NULL) 607 607 { … … 609 609 ASSERT(0); 610 610 } 611 DWORD d = ::WaitForSingleObject(h, INFINITE);612 _ASSERT(d == WAIT_OBJECT_0);611 DWORD d = ::WaitForSingleObject(h, INFINITE); 612 _ASSERT(d == WAIT_OBJECT_0); 613 613 614 614 try … … 619 619 f.close(); 620 620 } 621 catch ( ...) { } // rare exception to rule about ignoring exceptions621 catch (std::exception) { } // rare exception to rule about ignoring exceptions 622 622 623 623 // release mutex 624 624 ::ReleaseMutex(h); 625 ::CloseHandle(h);626 } 627 } 628 catch ( ...) { } // rare exception to rule about ignoring exceptions625 ::CloseHandle(h); 626 } 627 } 628 catch (std::exception) { } // rare exception to rule about ignoring exceptions 629 629 } 630 630
