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
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 2.1k
    • Issues 2.1k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #7182
Closed
Open
Issue created Jul 19, 2006 by FPC Admin account@fpc_adminOwner

Problems using LCL in DLL

Original Reporter info from Mantis: Phil
  • Reporter name:

Description:

I'm double-posting this because there appear to be several bugs and I'm not sure if they're in FPC or LCL.

I've uploaded a .zip file containing test programs that can be compiled with either Delphi or Lazarus.

GuiLib - VCL/LCL form in DLL
ConsoleTest - runs DLL form from console app
GuiTest - runs DLL form from GUI app

When GuiLib is compiled with Delphi, it works with both ConsoleTest and GuiTest compiled with either Delphi or Lazarus.

When GuiLib is compiled with Lazarus, works with ConsoleTest compiled with either Delphi or Lazarus on Windows. Does not work with GuiTest compiled with either Delphi or Lazarus on Windows (form is displayed but unresponsive). Does not work with either ConsoleTest or GuiTest on OS X using GTK widgetset (access violation).

An apparent FPC bug is evident when GuiLib is compiled with -Ct (stack check). This causes DLL function to exit immediately. This is also the case with most of my non-GUI DLL's as well, so I don't see it as a GUI issue.

Thanks.

Mantis conversion info:

  • Mantis ID: 7182
  • OS: Win XP and OS X
  • Build: 20060718 (Win) and 20060712 (OSX
  • Platform: Intel and PowerPC
  • Monitored by: » CWBudde (Christian Budde), » mspiller (mspiller), » fvpat (fvpat), » ChP (Pierre CHAUVEAU), » Jonas_E_SE (Jonas Eckerman), » Shaitan (Alexandr Demin), » Cyrax (Cyrax)
Assignee
Assign to
Time tracking