On Fri, 8 Feb 2013 12:42:53 +0000 Frank Church <[email protected]> wrote:
> I want to implement the SetHeapTraceOutput routine mentioned in this > thread - > http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-December/069226.html > > I also want to do it in a tidy manner, perhaps create some kind of > application template which contains it, and I think it should be in > the finalization sections of the application or something like that, > probably with the use of AddExitProc. > > How would it all hang together? Are the initialization and > finalization sections in a unit run when the program starts, or are > they run when something in the unit is created? When program starts, before main program 'begin'. > eg if a form is not created automatically by the application would its > initialization section be run at the state of the program regardless > of whether something defined is used, and woulld that also apply to > its finalization section? Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
