[Lazarus] global items in TApplication

Marc Santhoff M.Santhoff at web.de
Sun Sep 15 16:58:53 CEST 2013


On So, 2013-09-15 at 15:54 +0100, Martin wrote:
> On 15/09/2013 15:24, Marc Santhoff wrote:
> > I can, but then I'd have to choose one of two solutions I don't like: 
> > having to free the automatically created TApplication object or change 
> > forms.pp.
> 
> Create a descendant of TComponent, and have it owned by the application, 
> that should take care of it

For having one class aggregating all other items, yes. Nice Idea, so
construction and destruction will be handled cleanly.

:)

-- 
Marc Santhoff <M.Santhoff at web.de>





More information about the Lazarus mailing list