Lazarus

Programming => Operating Systems => Android => Topic started by: jmpessoa on May 13, 2019, 10:29:34 pm

Title: [SOLVED] LAMW + Sparta DockedFormEditor LPK
Post by: jmpessoa on May 13, 2019, 10:29:34 pm
I was having some issues with LAMW's form on "sparta_dockedformeditor.lpk"
the Lazarus IDE crash when closing  with a LAMW form opened.....

adding a line of code to "sparta_mainide.pas"  I got fix the problem...
[folder "....\components\sparta\dockedformeditor\source"]

Quote
class function TSpartaMainIDE.GetCurrentResizer: TResizer;
var
  LForm: TCustomForm;
  LFormData: TDesignFormData;
  LSourceWindow: TSourceEditorWindowInterface;
  LPageCtrl: TModulePageControl;
begin
  Result := nil;


  Application.ProcessMessages;   // <-- LAMW form fixed!


  if (FormEditingHook = nil) or (GlobalDesignHook = nil) then
    Exit;

..................

Title: Re: LAMW + Sparta DockedFormEditor LPK
Post by: hnb on May 14, 2019, 01:05:10 am
thanks for investigation. Please check with Lazarus rev 61223
Title: Re: [SOLVED] LAMW + Sparta DockedFormEditor LPK
Post by: jmpessoa on July 25, 2019, 09:27:39 pm
Quote
Please check with Lazarus rev 61223...

 Can we expect this fix to incoming lazarus 2.0.4 ?

Edited:  now it's there!
https://wiki.freepascal.org/Lazarus_2.0_fixes_branch

Thanks to All!
TinyPortal © 2005-2018