Changeset 1799 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Mar 16, 2015, 11:26:04 PM (10 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/treecnr.c

    r1796 r1799  
    9494                by RWS but I think the occasional extra blank directory or duplicating
    9595                directories is related.
     96  16 Mar 15 GKY Add semaphore hmtxFiltering to prevent freeing dcd while filtering. Prevents
     97                a trap when FM2 is shutdown or the container is closed while tree
     98                container is still populating
    9699
    97100***********************************************************************/
     
    10121015                 UM_CLOSE, MPFROMLONG(dcd->dontclose != FALSE), MPVOID);
    10131016      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL);    // 13 Apr 10 SHL Set NULL before freeing dcd
     1017      DosRequestMutexSem(hmtxFiltering, SEM_INDEFINITE_WAIT);
    10141018      free(dcd);
     1019      DosReleaseMutexSem(hmtxFiltering);
    10151020#     ifdef FORTIFY
    10161021      Fortify_LeaveScope();
Note: See TracChangeset for help on using the changeset viewer.