System.Classes.TReader.EndReferences

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EndReferences;

C++

void __fastcall EndReferences(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TReader

Description

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

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.

See Also