Indy 9 save to stream problem

Giganews Newsgroups
Subject: Indy 9 save to stream problem
Posted by:  Serge Dosyukov (ser…@argosoftware.com)
Date: Wed, 24 Mar 2004

Hello,
this might be a known issue or I am doing something wrong, but

in TIdMessage.SaveToStream method when LIOHS :=
TIdIOHandlerStream.Create(nil); created  FreeStreams := True (line is
missing????)
Then if I do provide a stream and I do control a life of it LIOHS will free
it without letting me know about it

Solution? Implement SaveToStream myself and set LIOHS.FreeStreams := False;
after creation of a stream handler

--
Serge Dosyukov
Borland Delphi product certified
Microsoft Certified Professional

Replies