- C# MemoryStream leaking memory, after disposing/close/etc?
- byte[] bData = System.IO.File.ReadAllBytes( "F:\application_exit_bw.png" );
- using( System.IO.MemoryStream hMemoryStreamOutput = new System.IO.MemoryStream())
- {
- for ( int i = 0; i < 10000; i++ ) hMemoryStreamOutput.Write( bData, 0, bData.Length );
- }
- Thread.Sleep(Timeout.Infinite);