Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Error message with treeview on Debug version

New Here ,
Jun 16, 2016 Jun 16, 2016

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?

1.png

Thanks.

TOPICS
SDK
209
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 16, 2016 Jun 16, 2016
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines