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
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus