Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

Problem with Ttreeview on migration to Tokyo 10.2.3

$
0
0

Just updated to 10.2.3 and its seems to have broken a couple of my apps.

Problem is in Ttreeview which I build in the designer UI with headline nodes and populate the subnodes at runtime.

To speed things up in the subnode population, in the form create method, I search for the headline nodes and assign the tree nodes to global Ttreenode variables.

That avoids having to search for the main nodes every time I add a child node.

This has worked on every previous version now on some of my apps (not all) this now crashes with an "Unable to insert node" error on the first attempt to add a child node to a headline node using

TreeView1.items.addchild(MainNode,AName)

On debug, somewhere between the main form Oncreate and OnActivate events, the Trreview has reallocated all its nodes and the pointer addresses have changed.

 

As a work around, I have moved the node variable setters from the form onCreate event to the OnActivate event.

I guess this must be the result of messing with the VCL code somewhere between 10.1 and 10.2.3?

 

 


Viewing all articles
Browse latest Browse all 1963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>