Re: segfault while DELETE THIS

2005-08-17 Thread Nicholas Clark
On Thu, Aug 11, 2005 at 11:55:49AM +0800, Dongxu Ma wrote: According to typemap in ExtUtils and perl.h, casting IV to pointer should be safe in this case, since on my machine(32bit, kernel 2.6.12), sizeof(int) == 4, which is the same as a pointer. Does anyone have any idea about this issue?

segfault while DELETE THIS

2005-08-11 Thread Dongxu Ma
Hi All, I am learning how to use XS (C). Firstly, I wrote a simple C++ class, compiled to libtest.so. A simple main proved the test lib works fine. test.h--- #ifndef _TEST_H #define _TEST_H class Test { public: Test();

Re: segfault while DELETE THIS

2005-08-11 Thread Dominic Dunlop
On 2005–08–11, at 05:55, Dongxu Ma wrote: I am learning how to use XS (C). You may get more help by joining and posting to the perlxs list (see http://lists.cpan.org/showlist.cgi?name=perl-xs) or perhaps to perlmonks.org web site: the perl5-porters list is mainly concerned with the