* * *

Author Topic: Form's close buton dos not work when form in DLL  (Read 1609 times)

jamie

  • Full Member
  • ***
  • Posts: 151
Re: Form's close buton dos not work when form in DLL
« Reply #15 on: September 03, 2017, 04:38:42 pm »
I found it..

Get_caller_Addr
and some others, Just need to learn how to use them now ;)
This can be used to solve recursive issues indeed..

vejrous

  • New member
  • *
  • Posts: 9
Re: Form's close buton dos not work when form in DLL
« Reply #16 on: September 04, 2017, 09:13:33 pm »
Thank you for all answers. I am pretty sure I wont be able to fix this myself  :-\.

@jamie: I understand how to use forms in DLLs, but only under Delphi. Wanted to convert DLLs and components (which are already done) I wrote in Turbo Delphi to Lazarus.
DLL have multiple forms with indipendent instancies and datamodules). Each form takes care of themself (frees the datamodule/s and then self with caFree), because I use them as black boxes (from Excel, CAD,...). There can not be any errors or memory leaks because in that case DLL takes down entire Excel (2007) with all work done.

@Mick: I know that program will continue when using Show metod. Export functions are more complex and use Wordbool (2 byte bool because of VBA) to choose between Show and ShowModal if required.

@jamie: Free metod in OnClose makes the form disapear but creates memory error

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus