On Tue, May 29, 2012 at 12:07 PM, Dmitry Timoshkov <dmitry at baikal.ru> wrote: > What prevents you from discovering correct stream size? A stream can grow its memory. For example, IStream returned by CreateStreamOnHGlobal do this.