TNotebook generates pagechanged event before most objects created
Original Reporter info from Mantis: >8<
-
Reporter name: Bug Import
Original Reporter info from Mantis: >8<
- Reporter name: Bug Import
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.
Additional information:
Imported information
--------------------
Name: Tony Maro
Mail: tony (at) maro.net
Mantis conversion info:
- Mantis ID: 151