System.Classes.TReader.FixupReferences

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure FixupReferences;

C++

void __fastcall FixupReferences();

Properties

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

Description

Resolves references when streaming properties that are represented by another component.

FixupReferences is used internally by the streaming system to resolve the named references from the stream into instance references. Users would never need to call this method.

The reader object calls BeginReferences 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 references among various mutually dependent components read from the reader object's stream after all of the objects have been read. Finally, call EndReferences to dispose of the fixup list.

FixupReferences is always used inside a try...finally (Delphi) or try...__finally (C++) block between calls to BeginReferences and EndReferences.

See Also