This is almost exactly the way I wrote plugin architecture for my apps. The difference is that the dll function call (which opens a form) is blocked within Application.Initialize and Application.Terminate, so the dll function (and the form) lifetime is only along the executed function. The only currently missing feature (that I need) using this approach is that if the dll contains form that must be shown as modal, I can't pass my main form's instance to make it modal (the dll form is still non-modal).
-- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Form-in-DLL-tp3952007p3952303.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus