[C++-sig] call policies help needed (original) (raw)
Ricardo Kirkner ricardokirkner at gmail.com
Tue Dec 6 20:51:01 CET 2005
- Previous message: [C++-sig] Serialization/pickle
- Next message: [C++-sig] call policies help needed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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() 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
- Previous message: [C++-sig] Serialization/pickle
- Next message: [C++-sig] call policies help needed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]