[lazarus] TTreeview problem
nc-gaertnma at netcologne.de
Fri Sep 6 16:58:26 EDT 2002
On Fri, 06 Sep 2002 21:31:54 +0200
Michal Bukovjan <bukovjan at mbox.dkm.cz> wrote:
> It seems there is a memory corruption somewhere.
> The problem can be reproduced quite easily, just do:
> 1) Start Lazarus
> 2) Go to Environment -> CodeTools defines editor
> 3) Resize the windows slowly - either horizontally or vertically. Watch
> the treeview in upper part of the form.
> 4) Once the treeview reaches 0 size in either axis, crash occurs -
> invalid floating operation.
> I tried to trace the problem with gdb, and it says it crashes at
> gtkcallback.inc, line 1919 (case of vertical scroll) - but that line is
> relatively inoccent. Looking at variables at that point, the values
> there are seemingly random, which I tend to believe is corrupted memory.
- Don't panic. No corrupted memory.
- The round function has problems of converting maximum values.
- The bug was in the TCustomTreeView code, mixing integer and cardinal.
More information about the Lazarus