Topic Path: Symbol Reference > Classes > TIdAttachmentFile Class > TIdAttachmentFile Methods > CloseLoadStream Method
ContentsIndexHome
PreviousUpNext
TIdAttachmentFile.CloseLoadStream Method

Frees the internal stream used in loading the contents of the message part.

procedure CloseLoadStream; override;

CloseLoadStream is an overridden procedure used to free the internal file stream created for loading the contents of the message part during encoding and subsequent transmission. 

CloseLoadStream is used in the implementation of TIdMessageClient.SendBody after a TIdMessageEncoder instance has encoded the contents of the message part. 

CloseLoadStream frees the TFileStream created in OpenLoadStream.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.