Copy link to clipboard
Copied
Hi everyone,
Currently, i am working on CC 2015 Debug version.
I meet a message like the attached image.
After debugging, it relates to funtion GetChildIndex()
But i dont know where i am wrong?
Did anyone meet this one before?

Thanks.
Copy link to clipboard
Copied
Hi Duy-NV-Niteco,
I think there is an error in your implementation of ITreeViewHierarchyAdapter. The function ITreeViewMgr::IsNodeExpanded tranverses from its node up to the root node to check if all nodes are expanded, but the functions of ITreeViewHierarchyAdapter are not consistent, i.e. GetChildIndex(parent, child) returns -1 or an index, but GetNthChild(parent, index) does not return the same child node.
InDesign checks this consistency of ITreeViewHierarchyAdapter in debug mode.
Markus
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more