Forum > Lazarus Extra Components

AnchorDocking fails using Lazarus Trunk

(1/4) > >>

dsiders:
I did an install of 2.0.12 (FPC 3.2.0) and applied Lazarus SVN trunk to it. Now, when I try to install AnchorDocking the IDE fails to restart after building. There were no error when I compiled the run-time and design-time packages. After building the IDE, it restarts but hangs after displaying only a wireframe outline of the docked IDE.  Has to be killed using Task Manager.

I've tinkered with everything I can think of... to no avail. Any ideas?

Using Windows 8.1 64-bit, FPC 3.2.0, Lazarus trunk revision 65166.

af0815:
Try to start Lazarus from commandline. Normal here are more infos. You can also use the the commandline switch --debug-log for more infos.

dsiders:

--- Quote from: af0815 on June 03, 2021, 07:49:56 am ---Try to start Lazarus from commandline. Normal here are more infos. You can also use the the commandline switch --debug-log for more infos.

--- End quote ---

Thanks for the suggestion. Will try later today, and follow up as needed.

dsiders:

--- Quote from: af0815 on June 03, 2021, 07:49:56 am ---Try to start Lazarus from commandline. Normal here are more infos. You can also use the the commandline switch --debug-log for more infos.

--- End quote ---


Finally got around to trying debug-log. Output follows:


--- Code: Text  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="C:\Users\Don\AppData\Local\lazarus"Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="C:\lazarus"Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-win64-win32 New=x86_64-win64-win32 Changed: OS/CPU=True LCL=FalseTApplication.HandleException: EAccessViolationAccess violation  Stack trace:  $0000000000000000  $0000000100B0494C  DRAW,  line 6521 of anchordocking.pas  $0000000100B050E4  PAINT,  line 6609 of anchordocking.pas  $00000001001B4B72  PAINTWINDOW,  line 123 of include/customcontrol.inc  $000000010019E45F  PAINTHANDLER,  line 4857 of include/wincontrol.inc  $00000001001A22E5  WMPAINT,  line 6836 of include/wincontrol.inc  $00000001001B4A87  WMPAINT,  line 103 of include/customcontrol.inc  $00000001000111F1  $00000001001AB4D1  WNDPROC,  line 2282 of include/control.inc  $000000010019F7B9  WNDPROC,  line 5429 of include/wincontrol.inc  $0000000100281C69  DELIVERMESSAGE,  line 112 of lclmessageglue.pas  $000000010017CD71  SENDPAINTMESSAGE,  line 745 of win32/win32callback.inc  $0000000100180F69  DOWINDOWPROC,  line 2354 of win32/win32callback.inc  $0000000100182080  WINDOWPROC,  line 2771 of win32/win32callback.inc  $00007FF81E333F40  $00007FF81E333902  $00007FF81E3339CEFreeFormEditor: FormEditor1=TFormEditor[TJITComponentList.DestroyJITComponent] ERROR destroying component Error: Access violation  Stack trace:  $00000001004A9F2F  SETCUSTOMFORM,  line 1168 of ../designer/controlselection.pp  $00000001004AD968  DELETE,  line 2291 of ../designer/controlselection.pp  $00000001004AD888  REMOVE,  line 2272 of ../designer/controlselection.pp  $00000001004AAE3D  NOTIFICATION,  line 1456 of ../designer/controlselection.pp  $00000001000B40F7  $000000010022633B  DESTROY,  line 152 of lclclasses.pp  $00000001001B2479  DESTROY,  line 5189 of include/control.inc  $00000001001A1DD7  DESTROY,  line 6653 of include/wincontrol.inc  $00000001001B4827  DESTROY,  line 40 of include/customcontrol.inc  $000000010003B787  DESTROY,  line 354 of include/scrollingwincontrol.inc  $000000010003CBF9  DESTROY,  line 137 of include/customform.inc  $0000000100010CBB  $00000001004811AF  DESTROYJITCOMPONENT,  line 780 of ../designer/jitforms.pp  $0000000100480F13  DESTROY,  line 731 of ../designer/jitforms.pp  $0000000100010CBB  $00000001000307F7  $000000010049FC6D  DESTROY,  line 530 of customformeditor.ppTCustomFormEditor.JITListException List.CurReadStreamClass=nil nil
Not sure how to solve it. May have to bug report this one.

It's hard to believe no one else has used 2.0.12 with Lazarus trunk.

Gustavo 'Gus' Carreno:
Hey dsiders,

I've had major issues with Anchor Docking and the generics implementation that comes with sparta.

On fpcupdeluxe I have this patch I apply for versions below 2.1:

--- Code: Diff  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Index: components/sparta/mdi/sparta_mdi.lpk===================================================================--- components/sparta/mdi/sparta_mdi.lpk        (revision 61673)+++ components/sparta/mdi/sparta_mdi.lpk        (working copy)@@ -46,16 +46,13 @@         <UnitName Value="sparta_abstractresizer"/>       </Item8>     </Files>-    <RequiredPkgs Count="3">+    <RequiredPkgs Count="2">       <Item1>-        <PackageName Value="sparta_Generics"/>+        <PackageName Value="LCL"/>       </Item1>       <Item2>-        <PackageName Value="LCL"/>+        <PackageName Value="FCL"/>       </Item2>-      <Item3>-        <PackageName Value="FCL"/>-      </Item3>     </RequiredPkgs>     <UsageOptions>       <UnitPath Value="$(PkgOutDir)"/>Index: components/sparta/toolsapi/sparta_toolsapi.lpk===================================================================--- components/sparta/toolsapi/sparta_toolsapi.lpk      (revision 61673)+++ components/sparta/toolsapi/sparta_toolsapi.lpk      (working copy)@@ -9,7 +9,7 @@       <PathDelim Value="\"/>       <SearchPaths>         <OtherUnitFiles Value="source"/>-        <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)\"/>+        <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>       </SearchPaths>     </CompilerOptions>     <Files Count="3">@@ -26,16 +26,13 @@         <UnitName Value="DesignMenus"/>       </Item3>     </Files>-    <RequiredPkgs Count="3">+    <RequiredPkgs Count="2">       <Item1>-        <PackageName Value="sparta_Generics"/>+        <PackageName Value="IDEIntf"/>       </Item1>       <Item2>-        <PackageName Value="IDEIntf"/>+        <PackageName Value="FCL"/>       </Item2>-      <Item3>-        <PackageName Value="FCL"/>-      </Item3>     </RequiredPkgs>     <UsageOptions>       <UnitPath Value="$(PkgOutDir)"/> 
I'm not sure that this is your problem, or even if it will solve your problem, but I've had success and no more issues after I applied this patch.

Cheers,
Gus

Navigation

[0] Message Index

[#] Next page

Go to full version