RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.TStreamOwnership Enumeration

TStreamOwnership indicates whether a stream object should be freed by the object that uses it.

Pascal
TStreamOwnership = (
  soReference,
  soOwned
);
C++
enum TStreamOwnership {
  soReference,
  soOwned
};

Classes

The following are possible values of TStreamOwnership:

Value 
Meaning 
soReference  
The stream is an independent object with a different Owner. The object that uses the stream does not free it when it is destroyed.  
soOwned  
The stream is owned by the object that uses it (and exists solely for that object). The object that uses the stream frees the associated stream when it no longer needs to use the stream.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!