$ 0 0 I strongly recommend a method called clear() (that does something like ZeroMemory). It sounds useless but it's useful for reusing the stream. Thanks again for great support.