Forum > LCL

[SOLVED]position range overflow in .SendMoveSizeMessages when starting the IDE

(1/1)

ljz111:
I used version 3.2 and I got Error 'position range overflow in statusbar.SendMoveSizeMessages' when i opened the Lazarus IDE.

IDE worked fine until once I merged my colleague's git commit(include .lps which maybe is the root cause)

I find this error trace in lazlog.txt

--- Code: Pascal  [+][-]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";}};} ---Position range overflow in StatusBar.SendMoveSizeMessages: Left=0, Top=50859.  Stack trace:  $00000001001D218D  SENDMOVESIZEMESSAGES,  line 4355 of include/wincontrol.inc  $00000001001DD85E  CHANGEBOUNDS,  line 758 of include/control.inc  $00000001001E9CC0  SETBOUNDSKEEPBASE,  line 5584 of include/control.inc  $00000001001CF440  DOPOSITION,  line 3045 of include/wincontrol.inc  $00000001001CEADE  DOALIGN,  line 3158 of include/wincontrol.inc  $00000001001CE5F3  ALIGNCONTROLS,  line 3233 of include/wincontrol.inc  $0000000100040F95  ALIGNCONTROLS,  line 102 of include/scrollingwincontrol.inc  $00000001001D6BA4  ALIGNCONTROL,  line 6450 of include/wincontrol.inc  $00000001001E2F0A  AUTOSIZECONTROL,  line 3096 of include/control.inc  $00000001001E2F4A  AUTOSIZECONTROL,  line 3098 of include/control.inc  $00000001001E2F4A  AUTOSIZECONTROL,  line 3098 of include/control.inc  $00000001001E2F4A  AUTOSIZECONTROL,  line 3098 of include/control.inc  $00000001001E2C64  DOALLAUTOSIZE,  line 3146 of include/control.inc  $00000001001D0521  DOALLAUTOSIZE,  line 3546 of include/wincontrol.inc  $00000001001EA4C9  ENABLEAUTOSIZING,  line 5851 of include/control.inc  $0000000100DCDF13  ENABLEALLAUTOSIZING,  line 2551 of anchordocking.pas  $0000000100DCE35B  fin$00000568,  line 2667 of anchordocking.pas
and I find the error is FTop ,the property of TWinControl, over the size limit of smallint,by include/wincontrol.inc.

--- Code: Pascal  [+][-]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";}};} ---      if (FLeft < Low(Smallint)) or (FLeft > High(Smallint))      or (FTop  < Low(Smallint)) or (FTop  > High(Smallint)) then        raise ELayoutException.CreateFmt('Position range overflow in %s.SendMoveSizeMessages:'                                 +' Left=%d, Top=%d.', [Name, FLeft, FTop]);
I have no idea how to fix this error.Is there any other solution besides reinstalling the Lazarus?

ljz111:
The problem is solved.
I modify the file named environmentoptions.xml in Lazarus/ with changing the number which more than 32767 to 30000.And it`s worked!'environmentoptions.xml' seem like the file record layout of editor.
Nonetheless,I still don't know how this error happened.If you know the reasons and prevention methods,this post still welcomes to reply.

440bx:

--- Quote from: ljz111 on December 31, 2024, 05:37:56 am ---The problem is solved.

--- End quote ---
The headline says the problem is "SOVLED" not "solved" ;)  therefore, there is still some work to do for it to be "solved".

Navigation

[0] Message Index

Go to full version