Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-02

Why is FormCreate not called ?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roland Turcan

Hello lazarus project!

I am porting our application from Delphi 7 to Lazarus and I did the following:

1. Used the DFM to LFM converter
2. Removes {$*.DFM}
3. Opened all "Form"s to remove all unnecessary properties from LFM files.
4. Added {$I UnitName.lrs} into initialization

but some forms don't call their FormCreate constructor, but I don't know what could be the reason. The LPR creates forms with:

    ...
    Application.CreateForm(TMyDlg, MyDlg);
    ...

I have checked:

1. LFM contains:

object MyDlg: TMyDlg
OnCreate = FormCreate

2. LRS contains:

... 'OnCreate'#7#10'FormCreate' ...

Does anybody have any suggestion what else to check?

Thanks in advance.

Reply by email