Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,086
    • Issues 2,086
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 has launched! Please visit Breaking changes in 15.0 and 15.0 Removals to see which breaking changes may impact your workflow.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #38922
Closed
Open
Created May 22, 2021 by FPC Admin account@fpc_adminOwner

FormShow call at wrong time

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.

Mantis conversion info:

  • Mantis ID: 38922
  • OS: Windows
  • OS Build: Win 10
  • Platform: x86_64
  • Version: 2.1 (SVN)
  • Fixed in version: 2.4
  • Fixed in revision: r65213 (#595fb2c2), r65303 (#ffa2a3f3)
  • Monitored by: » @ganmax (Maxim Ganetsky), » AntonK (Anton Kavalenka), » @davidbannon (David)
  • Target version: 2.4
Assignee
Assign to
Time tracking