Re: wxTreeListCtrl::DeleteAllItems crash

[email protected]
Newsgroups gmane.comp.lang.perl.wxperl
Message-ID <[email protected]>
> I had to install
> Wx::TreeListCtrl separately from CPAN.

It is absolutely part of wxperl already. I have it built against gtk3 
and Wx3.

On 2014-12-08 01:00, Steve Cookson - gmail wrote:
> 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, [email protected] 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.
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.