[fpc-devel] LocalReferenceFixup
Martin Schreiber
mse00000 at gmail.com
Thu Oct 7 20:30:06 CEST 2010
On Thursday, 7. October 2010 17.25:28 José Mejuto wrote:
> Hello FPC,
>
> Thursday, October 7, 2010, 8:27:23 AM, you wrote:
>
> MS> Maybe you mix up component creation order and form/datamodule creation
> order? MS> I wrote about form/datamodule creation order.
>
> The datamodule is created just in program load, before any dependent
> component is created, so my execution layout is:
>
> 1) Main form create (only a bunch of visual options).
> 2) Datamodules are being created and will keep loaded up to main form
> destroy.
> 3) When user selects an option in main form, the new form, with some
> SQLQuery components inside linked with the already loaded
> datamodule(s), is being created and the problem happends.
>
Aha. In MSEgui application.createform()/createdatamodule() must be called in
order to allow component linking with already loaded modules, t*form.create()
is not enough. I don't know how this works in Lazarus.
Martin
More information about the fpc-devel
mailing list