Vincent Snijders wrote:

Crause, Christo (JC) schreef:

I am trying to run Lazarus (build 9246) on x86_64-redhat-linux with FPC
2.0.3 (build 3429).
When opening certain dialogs in the IDE, I get exceptions.  As an
example, this error was generated by clicking on Environment |
Environment options:

TApplication.HandleException Invalid floating point operation
  Stack trace:
  $000000000052C267  GETCHILDMINRESIZE,  line 616 of
./include/wincontrol.inc
  $000000000052BBE4  TAUTOSIZEBOX__RESIZECHILDS,  line 780 of
./include/wincontrol.inc
  $000000000052CCCB  TAUTOSIZEBOX__RESIZETABLE,  line 806 of
./include/wincontrol.inc
  $000000000052D0A0  TAUTOSIZEBOX__ALIGNCONTROLSINTABLE,  line 896 of
./include/wincontrol.inc
  $0000000000534933  TWINCONTROL__ALIGNNONALIGNEDCONTROLS,  line 4155 of
./include/wincontrol.inc
  $000000000052E053  DOALIGNNOTALIGNED,  line 1586 of
./include/wincontrol.inc
  $000000000052DE60  TWINCONTROL__ALIGNCONTROLS,  line 1639 of
./include/wincontrol.inc
  $0000000000534E05  TWINCONTROL__ALIGNCONTROL,  line 4277 of
./include/wincontrol.inc
  $00000000005347E8  TWINCONTROL__REALIGN,  line 4100 of
./include/wincontrol.inc
  $00000000005300E4  TWINCONTROL__ENABLEALIGN,  line 2092 of
./include/wincontrol.inc
  $000000000053A270  TCONTROL__CHANGEBOUNDS,  line 390 of
./include/control.inc
  $000000000053F2BA  TCONTROL__SETBOUNDS,  line 2492 of
./include/control.inc
  $0000000000537ACE  TWINCONTROL__SETBOUNDS,  line 5575 of
./include/wincontrol.inc
  $0000000000542CDF  TCONTROL__SETBOUNDSKEEPBASE,  line 8386 of
./include/control.inc
  $000000000053C638  TCONTROL__SETALIGNEDBOUNDS,  line 1275 of
./include/control.inc
  $000000000052EBB3  DOPOSITION,  line 1433 of ./include/wincontrol.inc
  $000000000052E25A  DOALIGN,  line 1557 of ./include/wincontrol.inc

It seems as if the exception occurs in the following piece of code:
CurScale:=double(Child.MinimumSize[Orientation])
/Child.PreferredSize[Orientation]; A hack around this issue is to insert an exit command just before line
616 in wincontrol.inc, but this obviously stuffs up resizing and
probably has other side effects too.


I have analyzed this problem and it is a bug in code generator. A simple app has been created for the bug report: http://www.freepascal.org/bugs/showrec.php3?ID=5010

Vincent


That seems to be the same as these bugs

http://www.lazarus.freepascal.org/mantis/view.php?id=1693
http://www.freepascal.org/bugs/showrec.php3?ID=4788

Andrew

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to