[Lazarus] Question

Piotr Wróblewski piotr.wroblewski at poznan.varico.com
Fri May 22 14:20:28 CEST 2009


I don't have any splash forms but debugger stops here. Probably because 
of nil AForm.

Mattias Gärtner pisze:
> 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
>
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





More information about the Lazarus mailing list