[fpc-devel] TCustomApplication's parent class?
    Graeme Geldenhuys 
    graemeg.lists at gmail.com
       
    Sun Apr 27 10:07:17 CEST 2008
    
    
  
2008/4/27 Sergei Gorelkin <sergei_gorelkin at mail.ru>:
>  In fact, TSomeForm.Create(Application) should work and should be enough for
> all cases. In my vision, the purpose of Application.CreateForm is a
> workaround for odd VCL architecture: it assigns object reference before
> calling its constructor, so that you can use global variables like "Form1"
> within FormCreate handler without getting a segfault. But doing so is bad,
> extremely bad practice...
Ah, so that explains the weird code in Lazarus's
Application.CreateForm().  Calling .NewInstance() and then later
calling .Create(). :-)  Thanks for the explanation.
Regards,
 - Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
    
    
More information about the fpc-devel
mailing list