From: Griffith, J. (I. F. C. CO) <joh...@hp...> - 2011-01-25 22:16:41
|
Hello, I've discovered the root of the problem I was having with the python interpreter hanging and seg-faulting was actually due to python trying to call the DTOR on my C++ objects that had already been deleted by the C++ library code. I've discovered that adding the "object.thisown = 0" line in my scripts resolves the issue. I'm wondering if anybody knows how I can do this via the swig .i file rather than having this "custom" line of code in all of my scripts? The swig documentation mentions it and talks about it being addressed in the "typemaps" section but I'm not having any luck. Thanks, John |