wx.gizmos.TreeListCtrl.Delete() core dump

Hi,

I am using a wx.gizmos.TreeListCtrl. I am getting inconsistent core
dumps with .Delete(item). Are there any know issues that I should be
looking out for?

I have done some more testing, and the core dump only happens after I
use the keyborad to navigate the the wx.gizoms.TreeListCtrl (ex. click
select an item > use arrow keys to highlight a new item > Delete
everything but the root item > add some items with children > delete
some children > core dump). In this case the core dump is consistent.

···

On Dec 6, 1:35 pm, yl <ylind...@sbcglobal.net> wrote:

Hi,

I am using awx.gizmos.TreeListCtrl. I am getting inconsistent core
dumps with .Delete(item). Are there any know issues that I should be
looking out for?

I think I had a similar issue with the TreeListCtrl and it involved
the "current item". Try self.SetCurrentItem(theRootItem) before
deleting the items.

Cheers, Frank

···

2009/12/7 yl <ylindqui@sbcglobal.net>:

I have done some more testing, and the core dump only happens after I
use the keyborad to navigate the the wx.gizoms.TreeListCtrl (ex. click
select an item > use arrow keys to highlight a new item > Delete
everything but the root item > add some items with children > delete
some children > core dump). In this case the core dump is consistent.

I think I had a similar issue with the TreeListCtrl and it involved
the "current item". Try self.SetCurrentItem(theRootItem) before
deleting the items.

Cheers, Frank

···

2009/12/7 yl <ylindqui@sbcglobal.net>:

I have done some more testing, and the core dump only happens after I
use the keyborad to navigate the the wx.gizoms.TreeListCtrl (ex. click
select an item > use arrow keys to highlight a new item > Delete
everything but the root item > add some items with children > delete
some children > core dump). In this case the core dump is consistent.

Thanks. I am lucking in the sense that I was deleting all the root's
children before adding back to the root, then culling various
children. I found that if I did not only delete the children, but also
the root, this fixed the issue.

I the problem arises again, I will give you solution a test.

Thanks!

···

On Dec 7, 1:38 pm, Frank Niessink <fr...@niessink.com> wrote:

2009/12/7 yl <ylind...@sbcglobal.net>:

> I have done some more testing, and the core dump only happens after I
> use the keyborad to navigate the the wx.gizoms.TreeListCtrl (ex. click
> select an item > use arrow keys to highlight a new item > Delete
> everything but the root item > add some items with children > delete
> some children > core dump). In this case the core dump is consistent.

I think I had a similar issue with the TreeListCtrl and it involved
the "current item". Try self.SetCurrentItem(theRootItem) before
deleting the items.

Cheers, Frank