treeviewer getchildren error sometimes [message #554591] |
Mon, 23 August 2010 16:09 |
Bright Messages: 2 Registered: July 2009 |
Junior Member |
|
|
I have set up an application with treeviewer instead of tabletreeviewer, when i sort my column, sometimes it throws an exception "widget is disposed"
I traced the track of AbstractTreeViewer, i found somethings wired when getChildren from the treeviewer.
the items returned is more than the tree's actual item. it cause the code line 2600
int numItemsToDispose = items.length - min (> 0)
the variable min is the actual item in the tree.
i think the code block between code line 2608 and 2624 make the exception happened. It just dispose the item, not remove it from the items, so if return value of method getchildren is larger than elementChildren.length in method updateChildren(Widget widget, Object parent, Object[] elementChildren, boolean updateLabels), the exception might happen.
sorry for my bad english!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03996 seconds