Changeset 1799 for trunk/dll/arccnrs.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/arccnrs.c

    r1782 r1799  
    106106  06 Apr 14 GKY Removed all BZ/GZ checks
    107107  28 Jun 14 GKY Fix errors identified with CPPCheck; Fix retry to create workdir code
     108  16 Mar 15 GKY Add semaphore hmtxFiltering to prevent freeing dcd while filtering. Prevents
     109                a trap when FM2 is shutdown or the container is closed while arc
     110                container is still populating
    108111
    109112***********************************************************************/
     
    22782281      WinSendMsg(dcd->hwndCnr, UM_CLOSE, MPVOID, MPVOID);
    22792282      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL);    // 13 Apr 10 SHL Set NULL before freeing dcd
     2283      DosRequestMutexSem(hmtxFiltering, SEM_INDEFINITE_WAIT);
    22802284      free(dcd);
     2285      DosReleaseMutexSem(hmtxFiltering);
    22812286#     ifdef FORTIFY
    22822287      Fortify_LeaveScope();
Note: See TracChangeset for help on using the changeset viewer.