Re: [C++-sig] free() of null-pointing handle<> throws SIGABRT

2012-11-29 Thread Martin Hellmich
-1.12.so.1 #30 0x0040ef84 in testBaseMain (argn=, argv=) at /usr/src/debug/dmlite-0.6.0/tests/cpp/test-base.cpp:92 #31 0x003a3a21ecdd in __libc_start_main () from /lib64/libc.so.6 #32 0x004063c9 in _start () On 11/23/2012 08:36 PM, Martin Hellmich wrote: Hi, in my exception

[C++-sig] free() of null-pointing handle<> throws SIGABRT

2012-11-23 Thread Martin Hellmich
64/dmlite/test/cpp/test-replicas: free(): invalid pointer: 0x003a4c5a0d60 *** GDB output: (gdb) p htb $6 = {m_p = 0x0} (gdb) p tb $7 = (PyObject *) 0x0 (gdb) info locals val = 0x3a4c5a0d80 tb = 0x0 hexc = {m_p = 0x3a4c579ea0} what = "" exc = 0x3a4c579ea0 hval = {m_p = 0x3a4c5a0d80}

Re: [C++-sig] export custom C++ exception to Python so it can beraisedby python

2012-11-07 Thread Martin Hellmich
Hi Giuseppe, thank you for the detailed response! On 11/07/2012 08:56 AM, Giuseppe Corbelli wrote: On 06/11/2012 15:35, Martin Hellmich wrote: I've based my code on. http://stackoverflow.c om/questions/9620268/boost-python-custom-exception-class I have used the same reference and

Re: [C++-sig] export custom C++ exception to Python so it can be raisedby python

2012-11-06 Thread Martin Hellmich
Hi Giuseppe, On 11/06/2012 10:08 AM, Giuseppe Corbelli wrote: On 05/11/2012 18:51, Martin Hellmich wrote: Hi, I have a custom exception in C++ that I would like to use in Python. Let's call it MyException with custom constructor and members (an implementation is below). I would li

[C++-sig] export custom C++ exception to Python so it can be raised by python

2012-11-05 Thread Martin Hellmich
Hi, I have a custom exception in C++ that I would like to use in Python. Let's call it MyException with custom constructor and members (an implementation is below). I would like to expose it to python so that I can raise it: > raise MyException(-1, 'tragic error') The perfect way that I can