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