Changeset 1799 for trunk/dll/collect.c


Ignore:
Timestamp:
Mar 16, 2015, 11:26:04 PM (11 years ago)
Author:
Gregg Young
Message:

Add fix for trap on close while filtered dir container was still populating to collector, arc container and tree container after collector experienced the same trap. Ticket [535]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/collect.c

    r1741 r1799  
    8484  13 Dec 13 SHL CollectorCnrWndProc IDM_FILTER: avoid exception on missing fileName
    8585  22 Feb 14 GKY Fix warn readonly yes don't ask to work when recursing directories.
     86  16 Mar 15 GKY Add semaphore hmtxFiltering to prevent freeing dcd while filtering. Prevents
     87                a trap when FM2 is shutdown or the container is closed while collector
     88                container is still populating
    8689
    8790***********************************************************************/
     
    11601163      FreeList(dcd->lastselection);
    11611164      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL);    // 13 Apr 10 SHL Set NULL before freeing dcd
     1165      DosRequestMutexSem(hmtxFiltering, SEM_INDEFINITE_WAIT);
    11621166      free(dcd);
     1167      DosReleaseMutexSem(hmtxFiltering);
    11631168#     ifdef FORTIFY
    11641169      Fortify_LeaveScope();
Note: See TracChangeset for help on using the changeset viewer.