Hi Sam,
You may be right. But I found it a bit hard to test.
Firstly, I didn't have this installed, so I had to install
Wx::TreeListCtrl separately from CPAN.
After I had fixed the "variable on 4 redefines earlier object" it
crashes on my system with:
Can't locate object method "DeleteAllItems" via package
"Wx::TreeListCtrl" at
It is not wrapped in the cpan XS/ directory and it doesn't appear to be
inherited from anything, so I don't think you should not have got a
segfault, just a non-existent method.
So I tried a bit of DIY. I found the TreeListCtrl.xs in directory /XS
in my cpan directory
There are a couple of lines:
void
wxTreeListCtrl::DeleteRoot ()
And I put the following two lines afterwards, it should have worked:
void
wxTreeListCtrl::DeleteAllItems ()
Then I did sudo make and sudo make install and I got:
TreeListCtrl.c: In function ‘void
XS_Wx__TreeListCtrl_DeleteAllItems(PerlInterpreter*, CV*)’:
TreeListCtrl.c:3830:8: error: ‘class wxTreeListCtrl’ has no member named
‘DeleteAllItems’
THIS->DeleteAllItems();
^
make: *** [TreeListCtrl.o] Error 1
So I don't really know what to do next. I'll have another think when I
have a moment.
Regards
Steve.
On 05/12/14 17:27, s...@akalabs.net wrote:
I am getting crashes calling TreeListCtrl::DeleteAllItems. I'm
assuming there's a bug and it's in wxperl.
http://pastebin.com/HAvqLaqp
http://pastebin.com/fcAY1nF4
I'd be happy to figure out more if anyone has guidance.
Thanks.