Recent

Author Topic: LAMW + Sparta DockedFormEditor LPK  (Read 116 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 1317
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: May 13, 2019, 10:40:20 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

hnb

  • Sr. Member
  • ****
  • Posts: 263
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