Topic Path: Symbol Reference > Classes > TIdIOHandlerStream Class > TIdIOHandlerStream Properties > FreeStreams Property
TIdIOHandlerStream.FreeStreams Property

Indicates the stream instances are owned by the IOHandler.

property FreeStreams: Boolean;

FreeStreams is a Boolean property used to indicate if the stream instances in SendStream and ReceiveStream are owned by the IOHandler. 

FreeStreams is used in Close. When FreeStreams is True, stream instances allocated to the ReceiveStream and SendStream properties are freed in the destructor. 

The default value for FreeStreams is True, as assigned in the Create method. 

Change the value for FreeStreams to False if streams instances are handled in the application. 

Use OnGetStream to create stream instances for the IOHandler.

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