Tom Verhoeff wrote:

On Tue, Aug 09, 2005 at 10:44:32AM +0200, Micha Nelissen wrote:
FOnCreate is called in TCustomForm.DoCreate. DoCreate is called in
TCustomForm.Create (the constructor). Try setting a breakpoint in the
constructor and walking through.

Next question: where is the code that loads the .lfm file and assigns
FOnCreate upon reading 'OnCreate =' from .lfm ?  Where/when is that code
activated?  How could that go wrong?

As far I know the lfm is not actually a valid freepascal file, but is converted into a file with the same name but with the .lrs extension which is included with the {$I myunit.lrs} directive.

at the bottom of your unit is there a section that looks like this:

initialization
 {$I unit1.lrs}

where unit1 = the name of the unit

if this is not there then that could cause what you've stated, and more bad things

HTH

Andrew


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to