|Subject:||TIdMessage SaveToStream bug?|
|Posted by:||Koller Krisztian (koll…@mkmcom.hu)|
|Date:||Mon, 5 Apr 2004|
I'd like to save a message by SaveToFile method.
I get an acccess violation error:
vStream := TFileStream.create(AFileName, fmCreate);
SaveToStream(vStream, AHeadersOnly); //saving is correct
vStream.Free; //access violation
I've debugged TIdMessage: before calls SaveToStream, FHandle of vStream
equals 1552, after calling FHandle is 12.
I think this is the reason of the problem. I didn't find any problem in
How can I solve it?
(D7 + newest Indy)