Recent

Author Topic: [SOLVED]position range overflow in .SendMoveSizeMessages when starting the IDE  (Read 1875 times)

ljz111

  • Newbie
  • Posts: 3
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  [Select][+][-]
  1. Position range overflow in StatusBar.SendMoveSizeMessages: Left=0, Top=50859.
  2.   Stack trace:
  3.   $00000001001D218D  SENDMOVESIZEMESSAGES,  line 4355 of include/wincontrol.inc
  4.   $00000001001DD85E  CHANGEBOUNDS,  line 758 of include/control.inc
  5.   $00000001001E9CC0  SETBOUNDSKEEPBASE,  line 5584 of include/control.inc
  6.   $00000001001CF440  DOPOSITION,  line 3045 of include/wincontrol.inc
  7.   $00000001001CEADE  DOALIGN,  line 3158 of include/wincontrol.inc
  8.   $00000001001CE5F3  ALIGNCONTROLS,  line 3233 of include/wincontrol.inc
  9.   $0000000100040F95  ALIGNCONTROLS,  line 102 of include/scrollingwincontrol.inc
  10.   $00000001001D6BA4  ALIGNCONTROL,  line 6450 of include/wincontrol.inc
  11.   $00000001001E2F0A  AUTOSIZECONTROL,  line 3096 of include/control.inc
  12.   $00000001001E2F4A  AUTOSIZECONTROL,  line 3098 of include/control.inc
  13.   $00000001001E2F4A  AUTOSIZECONTROL,  line 3098 of include/control.inc
  14.   $00000001001E2F4A  AUTOSIZECONTROL,  line 3098 of include/control.inc
  15.   $00000001001E2C64  DOALLAUTOSIZE,  line 3146 of include/control.inc
  16.   $00000001001D0521  DOALLAUTOSIZE,  line 3546 of include/wincontrol.inc
  17.   $00000001001EA4C9  ENABLEAUTOSIZING,  line 5851 of include/control.inc
  18.   $0000000100DCDF13  ENABLEALLAUTOSIZING,  line 2551 of anchordocking.pas
  19.   $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  [Select][+][-]
  1.       if (FLeft < Low(Smallint)) or (FLeft > High(Smallint))
  2.       or (FTop  < Low(Smallint)) or (FTop  > High(Smallint)) then
  3.         raise ELayoutException.CreateFmt('Position range overflow in %s.SendMoveSizeMessages:'
  4.                                  +' 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?
« Last Edit: December 31, 2024, 07:57:21 am by ljz111 »

ljz111

  • Newbie
  • Posts: 3
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

  • Hero Member
  • *****
  • Posts: 4994
The problem is solved.
The headline says the problem is "SOVLED" not "solved" ;)  therefore, there is still some work to do for it to be "solved".
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018