Sign in Join

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

Mailing lists / lazarus / 2003-12

Bug Report Update - TNotebook generates pagechanged event before most objects created

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Unknown author

Title: TNotebook generates pagechanged event before most objects created

Entered by: Tony Maro

Original Description:
I just learned that a TNotebook will generate a pagechanged event at the form's creation, referencing the current page as the one it was left at during design time.

Meaning, if you reference objects in a datamodule during the pagechanged event, you get an access violation, because the datamodule hasn't even been created yet. I was able to put a simple check to see if the datamod existed prior to doing anything, but it seems to me that it shouldn't generate a pagechanged event at creation time.

Updated by: Mattias

Status: Fixed

Comments:
MG

Reply by email