Changeset 1470


Ignore:
Timestamp:
1/5/2010 10:54:05 AM (5 years ago)
Author:
lowjoel
Message:

Compilo. Strange, I thought it compiled fine. Finally fixes #293

Location:
branches/eraser6/6.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0

  • branches/eraser6/6.0/Eraser.DefaultPlugins/FileSystems/Windows.cs

    r1468 r1470  
    6666 
    6767                        case 32: //ERROR_SHARING_VIOLATION 
    68                             //Let the process locking the file release the lock 
    69                             Thread.Sleep(100); 
    70  
    7168                            //If after FilenameEraseTries the file is still locked, some program is 
    7269                            //definitely using the file; throw an exception. 
     
    7471                                throw new IOException(S._("The file {0} is currently in use and " + 
    7572                                    "cannot be removed.", info.FullName), e); 
     73 
     74                            //Let the process locking the file release the lock 
     75                            Thread.Sleep(100); 
     76                            break; 
     77 
    7678                        default: 
    7779                            throw; 
     
    104106 
    105107                        case 32: //ERROR_SHARING_VIOLATION 
    106                             //Let the process locking the file release the lock 
    107                             Thread.Sleep(100); 
    108  
    109108                            //If after FilenameEraseTries the file is still locked, some program is 
    110109                            //definitely using the file; throw an exception. 
     
    112111                                throw new IOException(S._("The file {0} is currently in use and " + 
    113112                                    "cannot be removed.", info.FullName), e); 
     113 
     114                            //Let the process locking the file release the lock 
     115                            Thread.Sleep(100); 
     116                            break; 
     117 
    114118                        default: 
    115119                            throw; 
     
    153157 
    154158                        case 32: //ERROR_SHARING_VIOLATION 
    155                             //Let the process locking the file release the lock 
    156                             Thread.Sleep(100); 
    157  
    158159                            //If after FilenameEraseTries the file is still locked, some program is 
    159160                            //definitely using the file; throw an exception. 
     
    161162                                throw new IOException(S._("The file {0} is currently in use and " + 
    162163                                    "cannot be removed.", info.FullName), e); 
     164 
     165                            //Let the process locking the file release the lock 
     166                            Thread.Sleep(100); 
     167                            break; 
     168 
    163169                        default: 
    164170                            throw; 
Note: See TracChangeset for help on using the changeset viewer.