Changeset 1081 for trunk/CrypPluginBase


Ignore:
Timestamp:
Jan 14, 2010, 8:08:10 PM (12 years ago)
Author:
Matthäus Wander
Message:

bugfix CryptoolStream delete on dispose

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPluginBase/IO/CryptoolStream.cs

    r1077 r1081  
    2828        private bool isReadOnly;
    2929        private bool isDisposed;
     30        private bool deleteOnDispose;
    3031
    3132        public string FileName
     
    108109                isDisposed = true;
    109110
    110                 File.Delete(fileName);
     111                if (deleteOnDispose)
     112                {
     113                    File.Delete(fileName);
     114                }
    111115            }
    112116        }
     
    143147          position = fileStream.Position;
    144148          isReadOnly = true;
     149          deleteOnDispose = true;
    145150        }
    146151
     
    201206            }
    202207            isReadOnly = false;
     208            deleteOnDispose = true;
    203209        }
    204210
Note: See TracChangeset for help on using the changeset viewer.