[C++-sig] call policies help needed
Ricardo Kirkner
ricardokirkner at gmail.com
Tue Dec 6 20:51:01 CET 2005
hi. I am trying to wrap a method that returns a new object (allocated
with new)). As far as I know, I have to use the
return_value_policy<manage_new_object>() construct, to tell the
wrapper to hold that pointer.
The wrapper compiles ok, but when I call that method (from python) I
get an error (from glib) and the python interpreter exits. What am I
missing?
The error I am getting is:
*** glibc detected *** malloc(): memory corruption:
Abort
Thanks,
Ricardo Kirkner
More information about the Cplusplus-sig
mailing list