Crash at start up - TControl.InvalidatePreferredSize loop detected
Original Reporter info from Mantis: nicker
-
Reporter name: Lior
Original Reporter info from Mantis: nicker
- Reporter name: Lior
Description:
After debugging the LCL I've noticed that this bug always reproduce if the Application.BidiMode is initialized to bdRightToLeft, probably by values read from the system.
Resulting in ever increasing values on TAutoSizeBox.AlignToRight.
if I manually set Application.BidiMode to bdRightToLeftNoAlign before creating any forms, the bug does not reproduce.
Steps to reproduce:
- Start a new project => file->new->project->application
- Create panel1 on the form
- Create panel2 on the form
- In the object inspector drag panel2 so it'll be the child of panel1
- Change panel1 autosize property to true
- Change panel1 ChildSizing.Layout property to cclLeftToRightThenTopToBottom
- Compile and run the project
Mantis conversion info:
- Mantis ID: 28483
- OS: Windows
- OS Build: 8.1
- Build: 49524
- Platform: X64
- Version: 1.4.2
- Fixed in version: 1.9 (SVN)
- Fixed in revision: r55209 (#ca8e0d5f)
- Target version: 1.9 (SVN)