FormShow call at wrong time
Original Reporter info from Mantis: dbannon @davidbannon
-
Reporter name: David
Original Reporter info from Mantis: dbannon @davidbannon
- Reporter name: David
Description:
Sorry, this is a poor bug report. I cannot determine whats happening but can say conclusively that it relates to r64986, if I roll back to before that revision, mid April, it goes away. That revision seems to have quite a history ....
Its a windows only problem and I cannot replicate it in a simple app.
My app has several forms, only mainform is shown at startup. Post Lazarus r64986, formshow is being called on one of the non-mainforms during startup. if I revert back one revision, it behaves normally. With r64986 and beyond, some time after Application.run, one of the other auto created but not shown forms will have its formshow called (for no apparent reason), when it tries to do things with its components, typically, ending with TCustomForm.setfocus (line 375), an exception (EInvalidOperation) is raised and the app crashes.
I am sorry I cannot be more specific than that, I know this is a very poor bug report !
Steps to reproduce:
Download my app (!!&!) from https://github.com/tomboy-notes/tomboy-ng use Lazarus trunk on windows, add kcontrols via online package manager.
Build and run.
Roll back to before 13th May and the problem goes away. At startup, the only FormShow called is for mainform.