[Lazarus] TControl.InvalidatePreferredSize loop detected
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Oct 26 09:59:52 CEST 2010
On Tue, 26 Oct 2010 17:17:00 +1100
John <jszcmpr at netspace.net.au> wrote:
> Can anyone enlighten me as to the likely cause(es) of a "TControl.InvalidatePreferredSize loop detected" exception, and how one may debug it ? It is occurring in a frame, if that is significant, and it is the frame that is specified in the exception. Looking at the code in TControl.InvalidatePreferredSize, it would appear that the frame must not have a parent, but as it is occurring in the form designer, it is difficult to debug. I think it may not be happening at run time, but as it started happening at design time while I was in the middle of some "structural changes", it is hard to get a lot of sense out of the program at run time.
>
> Environment is WinXP SP3, fpc SVN 16114 Laz SVN 27864. (But it also occurred on Laz SVN from a few weeks ago)
Do you use only standard LCL controls?
Mattias
More information about the Lazarus
mailing list