Ignore:
Timestamp:
2/8/2010 8:25:51 AM (2 years ago)
Author:
lowjoel
Message:

Allow all IDisposable patterns to be reentrant. Addresses #275: Code Review

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview/Eraser/Program.ConsoleProgram.cs

    r1770 r1772  
    7474            protected virtual void Dispose(bool disposing) 
    7575            { 
     76                if (ConsoleWindow == null) 
     77                    return; 
     78 
    7679                //Flush the buffered output to the console 
    7780                Console.Out.Flush(); 
     
    8790                        ConsoleWindow.Dispose(); 
    8891                } 
     92 
     93                ConsoleWindow = null; 
    8994            } 
    9095            #endregion 
Note: See TracChangeset for help on using the changeset viewer.