Differences in using Constructor and unit Initialization block
From: Raptor (bogus_at_none.com)
Date: 01/28/05
- Next message: J French: "Re: Differences in using Constructor and unit Initialization block"
- Previous message: Raptor: "Re: Using Notification to track component creation..."
- Next in thread: J French: "Re: Differences in using Constructor and unit Initialization block"
- Reply: J French: "Re: Differences in using Constructor and unit Initialization block"
- Reply: Marc Rohloff [TeamB]: "Re: Differences in using Constructor and unit Initialization block"
- Reply: Martin Harvey (Demon account): "Re: Differences in using Constructor and unit Initialization block"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Jan 2005 03:14:35 -0800
OK, I'm creating a class/component in a unit.
When the app starts up, it seems that the unit's Initialization block is
activated first, which makes some sense--it would seem reasonable that the
unit's code would have to be processed before a class/component therein
could be created.
What, I'm wondering, kinds of things would one place in Initialization and
what would we reserve for .Create?
Would reading the app ini file be dangerous to do from Initialization, for
example, as the code for the IniFiles unit may not be loaded, or does the
fact that IniFiles appears in the unit's Uses clause guarantee the code will
be present?
Raptor
- Next message: J French: "Re: Differences in using Constructor and unit Initialization block"
- Previous message: Raptor: "Re: Using Notification to track component creation..."
- Next in thread: J French: "Re: Differences in using Constructor and unit Initialization block"
- Reply: J French: "Re: Differences in using Constructor and unit Initialization block"
- Reply: Marc Rohloff [TeamB]: "Re: Differences in using Constructor and unit Initialization block"
- Reply: Martin Harvey (Demon account): "Re: Differences in using Constructor and unit Initialization block"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|