Help needed with using SWIG wrapped code in Python

2011-08-15 Thread Vipul Raheja
rn NULL; } arg3[i] = PyString_AsString(s); } arg3[i] = 0; } { try { result = (bool)(arg1)->initialize(arg2,arg3); } catch (const std::exception& e) { SWIG_exception(SWIG_RuntimeError, e.what()); } } resultobj = SWIG_From_bool(static_cast< bool >(result)); { if (arg3) free(arg3); } return resultobj; fail: { if (arg3) free(arg3); } return NULL; } Kindly help. Thanks and regards, Vipul Raheja -- http://mail.python.org/mailman/listinfo/python-list

Re: Segmentation Fault on exit

2011-08-06 Thread Vipul Raheja
a look at it and help? It'll be really great. Here's the link: www.geofemengineering.it/data/master_wrap.cxx Thanks and Regards, Vipul Raheja On Sat, Aug 6, 2011 at 4:53 PM, Chris Angelico wrote: > On Sat, Aug 6, 2011 at 12:16 PM, Vipul Raheja > wrote: > > Hi

Re: Segmentation Fault on exit

2011-08-06 Thread Vipul Raheja
_SimpleFileExFlags () #7 0x0805b6d3 in Py_Main () #8 0x0805a8ab in main () (gdb) Regards, Vipul Raheja On Sat, Aug 6, 2011 at 4:32 PM, Chris Angelico wrote: > On Sat, Aug 6, 2011 at 11:35 AM, Vipul Raheja > wrote: > > Hi, > > > > I have wrapped a library from C++ to P

Segmentation Fault on exit

2011-08-06 Thread Vipul Raheja
:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pyossim >>> * Do some stuff * >>> exit() Segmentation fault vipul@vipul-laptop:~/ossim-svn/src/pyossim/swig$ Kindly help.