RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReader.EndReferences Method

Terminates a block of code that reads components from the reader object's stream that might contain references to each other.

Pascal
procedure EndReferences;
C++
__fastcall EndReferences();

EndReferences is used for streaming properties that reference another component. Programmers should not need to call EndReferences directly. 

The reader object calls EndReferences and creates a list of all the objects read and their names. After all the interdependent objects are read, FixupReferences is called to resolve the named references from the stream into instance references. Finally, call EndReferences to dispose of the fixup list. 

EndReferences is always used in the finally part of a try...finally (Delphi) or try...__finally (C++) block that also includes calls to BeginReferences and FixupReferences

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!