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 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel