Also looked at usage of Dispose. Memory Analyzer shows a huge allocation for ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream.StackElement. Yet, this OutputStream is used on only two places, and nicely protected with Using.

Conclusion Rev. 2266

Many modifications to find memory leak: * Initially UsarCommander used 13 Gb of memory, after this commit 1Gb of memory * buffer=Nothing after BlockCopy in ReceiveImageData reduced the memory usage from 90 to 50 * Operator is not longer making connection to ImageServer: 50% less memory usage, main usage (971 Kb) in WssConversation:ReceiveMessage * Initially UsarClient used 7.4 Gb of memory, after this commit 3 Gb * Half of the memory (1.4 Gb) is also in WssConversation:ReceiveMessage, the other half in LiveDriver.Run (1.3 Gb)