[fpc-devel] LocalReferenceFixup

Martin Schreiber mse00000 at gmail.com
Tue Oct 5 09:56:41 CEST 2010


On Tuesday 05 October 2010 00:37:44 José Mejuto wrote:
> Hello FPC,
>
> I find a problem that I'm unable to resolve, with my limited skills.
> In TReader when a property is a TClass it is being added to be
> resolved after all components are loaded, but the "Loaded" call is
> performed before this fixup, so when a component receive the "Loaded"
> signal some fields are still not completly filled in.
>
> This is terrible in the SQLQuery (from Lazarus) as if you left anyone
> "Active" it always complaint in runtime with "Database not set". :(

Use
"
procedure BeginGlobalLoading;
procedure NotifyGlobalLoading;
procedure EndGlobalLoading;
"
MSEgui has
"
procedure msebegingloballoading; //recursive
procedure mseendgloballoading;   //calls notifygloballoading in level 0
"
in order to simplify the task.

Martin



More information about the fpc-devel mailing list