[Lazarus] RE : Forms in DLL

Michael Schnell mschnell at lumino.de
Tue Aug 9 14:19:29 CEST 2011


Sorry for typing too fast (again :( ).

in fact I would try something like this:


var
   GUI2Thread: TGUI2Thread;
GUI2Application: TApplication

  procedure TGUI2Thread.Execute;
   begin
GUI2Application:= TApplication.create;
   GUI2Application.Title:='GUI2Test';
   GUI2Application.Initialize;
   GUI2Application.CreateForm(TForm2, Form2);
   GUI2Application.Run;
end;

On 08/09/2011 01:14 PM, Juan Sánchez wrote:
> The window is created from the main application, but you can not close 
> it. 
How are you trying to close it ?

If you close the Form Run should exit, but of course, before this the 
Form should be discarded from the screen and the memory.

Have fun,
-Michael




More information about the Lazarus mailing list