Problems using LCL in DLL
Original Reporter info from Mantis: Phil
-
Reporter name:
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)