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"]
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;
..................