View Issue Details

IDProjectCategoryView StatusLast Update
0035835PackagesPackagespublic2019-07-12 11:49
ReporterOndrej PokornyAssigned ToMattias Gaertner 
PrioritynormalSeverityminorReproducibilitysometimes
Status closedResolutionfixed 
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0035835: Project group: AV when closing the IDE
DescriptionIn TProjectGroupEditorForm.FormDestroy the
BuildCommandRedirected:=false;
is called that uses IDECommandList. IDECommandList can be nil when IDE is closed.

#0 HANDLEERRORADDRFRAME(210, 0x1058165, 0x13f5fc40) at ..\inc\system.inc:1201
0000001 HANDLEERRORADDRFRAMEIND(210, 0x1058165, 0x13f5fc40) at ..\inc\system.inc:1220
0000002 fpc_objecterror at ..\inc\system.inc:813
0000003 SETBUILDCOMMANDREDIRECTED(0x1f1a2030, false) at projectgroupeditor.pas:346
0000004 FORMDESTROY(0x1f1a2030, 0x1f1a2030) at projectgroupeditor.pas:610
0000005 DODESTROY(0x1f1a2030) at include\customform.inc:976
0000006 BEFOREDESTRUCTION(0x1f1a2030) at include\customform.inc:184
0000007 DESTROY(0x1f1a2030, 0x1) at include\customform.inc:198
0000008 DESTROYCOMPONENTS(0x140d51c0) at ..\objpas\classes\compon.inc:513
0000009 DESTROY(0x140d51c0, 0x1) at ..\objpas\classes\compon.inc:491
0000010 FREE(0x140d51c0) at ..\inc\objpas.inc:336
0000011 FREETHENNIL(0) at lazutilities.pas:37
0000012 FREETHENNIL(0) at lclproc.pas:918
0000013 DESTROY(0x1413dc10, 0x0) at mainbase.pas:728
0000014 DESTROY(0x1413dc10, 0x1) at main.pp:1748
0000015 FREE(0x1413dc10) at ..\inc\objpas.inc:336
0000016 main at lazarus.pp:166
Steps To ReproduceDo something with project groups and close the IDE.
Additional InformationPossible patch attached.
TagsNo tags attached.
Fixed in Revision61575.
LazTarget-
Widgetset
Attached Files
  • projectgroupeditor-destroy.patch (487 bytes)
    Index: projectgroupeditor.pas
    ===================================================================
    --- projectgroupeditor.pas	(revision 61574)
    +++ projectgroupeditor.pas	(working copy)
    @@ -343,6 +343,7 @@
     begin
       if FBuildCommandRedirected=AValue then Exit;
       FBuildCommandRedirected:=AValue;
    +  if IDECommandList=nil then Exit;
       BuildCmd:=IDECommandList.FindIDECommand(ecBuild);
       CompileCmd:=IDECommandList.FindIDECommand(ecCompile);
       if FBuildCommandRedirected then begin
    

Activities

Ondrej Pokorny

2019-07-12 11:02

reporter  

projectgroupeditor-destroy.patch (487 bytes)
Index: projectgroupeditor.pas
===================================================================
--- projectgroupeditor.pas	(revision 61574)
+++ projectgroupeditor.pas	(working copy)
@@ -343,6 +343,7 @@
 begin
   if FBuildCommandRedirected=AValue then Exit;
   FBuildCommandRedirected:=AValue;
+  if IDECommandList=nil then Exit;
   BuildCmd:=IDECommandList.FindIDECommand(ecBuild);
   CompileCmd:=IDECommandList.FindIDECommand(ecCompile);
   if FBuildCommandRedirected then begin

Issue History

Date Modified Username Field Change
2019-07-12 11:02 Ondrej Pokorny New Issue
2019-07-12 11:02 Ondrej Pokorny File Added: projectgroupeditor-destroy.patch
2019-07-12 11:10 Mattias Gaertner Assigned To => Mattias Gaertner
2019-07-12 11:10 Mattias Gaertner Status new => assigned
2019-07-12 11:13 Mattias Gaertner Status assigned => resolved
2019-07-12 11:13 Mattias Gaertner Resolution open => fixed
2019-07-12 11:13 Mattias Gaertner Fixed in Revision => 61575.
2019-07-12 11:13 Mattias Gaertner LazTarget => -
2019-07-12 11:49 Ondrej Pokorny Status resolved => closed