Recent

Author Topic: Event handler set to function in object in constructor? possible?  (Read 13991 times)

mijen67

  • Full Member
  • ***
  • Posts: 130
  • It's hard to beat the bandwidth of a flying DVD
Re: Event handler set to function in object in constructor? possible?
« Reply #30 on: October 17, 2017, 04:52:51 pm »
So when i read:
Code: [Select]
uses uLibFunctions1, uLogSimple1, uAppData, uProgSettings, IniFiles;
That means following order:
Code: [Select]
uAppData.Initialization
uProgSettings.Initialization
.lpr file
uProgSettings.Finalization
uAppData.Finalization
From that i assume you are able to grasp why things go wrong. Also note that you are allowed to include units at any other location (so order might not be the same as listed in .lpr file alone). Don't forget about interface _and_ implementation sections.

Thanks for the quick reply!
The order was as intended, uAppData before uProgSettings.
Problem was I forgot to close a file after creation ... (please don't mention it to anyone  8) )
It runs better now.

 

TinyPortal © 2005-2018