-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Height overflow when adding large number of nodes #1260
Comments
Please respect our guidelines on the project homepage for submitting bugs. Please include your version of Virtual TreeView and Delphi, and attach a sample compiling project as ZIP to your report that allows to replicate the problem. If only small changes are required, a description is sufficient how a demo projects needs to be changed in order to replicate the bug. If you already have a solution, please supply a patch file. |
I honestly don't think it is a good idea to present 200 million nodes to a user, even if that would be theortically and technically possible.
Where possible we could use |
I gave it a try, let me know what you think. |
@joachimmarder, thanks for answers and sorry for wrong report design. Unfortunately, your fix with |
I used the new type I still don't think it is a good idea to present >50 million nodes to a user. |
…void integer overflow.
Hello.
When setting large number of nodes (e.g. 200 millions) then the value of NewHeight overflows in method TBaseVirtualTree.SetChildCount (look here). Because it have type
TDimension = Integer
(defined here). So list is fixed (doesn't move), vertical scroll bar is absent and exception occurs in Debug mode.The text was updated successfully, but these errors were encountered: