[Lazarus] Some thoughts about the global 'Application' instance.

Hans-Peter Diettrich DrDiettrich1 at aol.com
Mon Jun 22 03:57:39 CEST 2009


Martin Friebe schrieb:

> The problem was started due to being forced to use a unit, that the 
> developer didn't want. IMHO this must be solved, the rest is 
> responsibility of the developer.

Other compilers have apptype specific startup code. The same could be 
achived by a global $define, e.g. APPTYPE, which forces the right app 
object(s) to be created. Then using units (e.g. Forms) must not 
necessarily cause the instantiation of another application object.

DoDi





More information about the Lazarus mailing list