Recent

Author Topic: [SOLVED] LAMW + Sparta DockedFormEditor LPK  (Read 324 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 1406
[SOLVED] LAMW + Sparta DockedFormEditor LPK
« 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;

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

« Last Edit: July 27, 2019, 07:01:52 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

hnb

  • Sr. Member
  • ****
  • Posts: 268
Re: LAMW + Sparta DockedFormEditor LPK
« Reply #1 on: May 14, 2019, 01:05:10 am »
thanks for investigation. Please check with Lazarus rev 61223
Checkout NewPascal initiative and donate beer - ready to use tuned FPC compiler + Lazarus for mORMot project

best regards,
Maciej Izak

jmpessoa

  • Hero Member
  • *****
  • Posts: 1406
Re: [SOLVED] LAMW + Sparta DockedFormEditor LPK
« Reply #2 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!
« Last Edit: July 27, 2019, 07:01:14 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard