Can you post the generated C code that relates to the processing of the problem argument (near the top and bottom of each generated subroutine)? You want the pointer to be stashed as an opaque value (usually an unsigned long integer, UV). If you have the typemap class wrong then the C code might be trying to copy the data in the allocated buffer rather than just stashing the pointer's value.
I don't recall which typemap class is meant to do this and looking at the generated C code prevents me from having to assembly the pieces myself and possible get confused in the process (I'm often easily confused).
- tye (but my friends call me "Tye")In reply to (tye)Re2: XS question: typemap for a pointer to a pointer?
by tye
in thread XS question: typemap for a pointer to a pointer?
by Big Willy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |