[Lazarus] Mantis title has a spelling mistake

Graeme Geldenhuys graemeg.lists at gmail.com
Sat May 23 09:19:26 CEST 2009


Zitat von Piotr Wróblewski <piotr.wroblewski at poznan.varico.com>:

> I have some doubts in Lazarus for Win32 application.inc. Every time  
> creating form with TApplication.CreateForm it is added to FFormList.  
> I can't find any place in code where Free or Delete for single form  
> is done.

CreateForm creates forms with Application as Owner. So the forms are  
freed, when Application is freed, which is done in finalization of  
unit forms.


> Also this construction in DoIdleActions is dengerous:
>
>  if FFormList<>nil then begin
>    for i:=0 to FFormList.Count-1 do begin
>      AForm:=TForm(FFormList[i]);
> *      if AForm.FormStyle=fsSplash then*
>        AForm.Hide;
>
> I have program error on bold line several times. Has anyone such problems?

No problems here. What are you doing with your splash forms?


Mattias

--
Powered by NetMail




More information about the Lazarus mailing list