Changeset 1318 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Dec 5, 2008, 2:57:40 AM (17 years ago)
Author:
Gregg Young
Message:

Fix dbl free error for deletes by disabling fSyncUpdates for deletes; ironically the container now update faster then with it on. Also improved failure of container to update following an archive extract. It now should work for all but may be the largest archives (based on root filenames). It work with the largest I could find.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r1315 r1318  
    7070  01 Sep 08 GKY Save toolbars immediately on change. Add bmps for default toolbars
    7171  29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate.
    72   03 Dec 08 GKY Use StubbyScanCount to prevent scan of "last" directory container prior to
     72  04 Dec 08 GKY Use event semaphore to prevent scan of "last" directory container prior to
    7373                tree scan completion; prevents duplicate directory names in tree.
    7474
     
    415415      henum = WinBeginEnumWindows(hwndMain);
    416416      while ((hwndC = WinGetNextWindow(henum)) != NULLHANDLE) {
    417         // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Tree = %lu\rExclude = %lu\rFound = %lu",hwndTree,exclude,hwndC);
     417         //saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Tree = %lu\rExclude = %lu\rFound = %lu",hwndTree,exclude,hwndC);
    418418        if (hwndC != exclude && hwndC != hwndTree) {
    419419          id = WinQueryWindowUShort(hwndC, QWS_ID);
     
    434434                               UM_CONTAINERDIR, MPFROMP(ret), MPVOID)) {
    435435                  MakeValidDir(ret);
    436                   // saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Tree = %lu\rExclude = %lu\rFound = %lu\r\"%s\"",hwndTree,exclude,hwndC,ret);
     436                  //saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"Tree = %lu\rExclude = %lu\rFound = %lu\r\"%s\"",hwndTree,exclude,hwndC,ret);
    437437                  WinEndEnumWindows(henum);
    438438                  return hwndC;
     
    31873187    PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID);
    31883188  }
     3189  DosWaitEventSem(DriveScanStart, 20000);
    31893190  size = (ULONG)0;
    31903191  sprintf(szKey, "%sTargetDir", szPrefix);
     
    59315932          continue;
    59325933        if (!IsFile(argv[x]) && !FindDirCnrByName(argv[x], FALSE)) {
    5933           DosSleep(10); // Give time for StubbyScanThreads to start
    5934           while (StubbyScanCount !=0)
    5935             DosSleep(50);
    59365934          OpenDirCnr((HWND) 0, hwndMain, hwndTree, TRUE, argv[x]);
    59375935        }
Note: See TracChangeset for help on using the changeset viewer.