SWIG callback problem on win32

M

Markus von Ehr

Hi,

I tried to build the swig: callback example,
but when I run the runme.py file I get a message box:
abnormal program termination

The error appears in already in the first line of the python
callback generation:

# Add a Python callback (caller owns the callback, so we
# disown it first by calling __disown__).

caller.setCallback(PyCallback().__disown__())
caller.call()
caller.delCallback()

When I call only PyCallback().__disown__()
alone, the error appears, too.

Anybody knows a solution?

Thanks a lot,

Markus
 
M

Markus von Ehr

Markus said:
Hi,

I tried to build the swig: callback example,
but when I run the runme.py file I get a message box:
abnormal program termination

The error appears in already in the first line of the python
callback generation:

# Add a Python callback (caller owns the callback, so we
# disown it first by calling __disown__).

caller.setCallback(PyCallback().__disown__())
caller.call()
caller.delCallback()

When I call only PyCallback().__disown__()
alone, the error appears, too.

Anybody knows a solution?

Thanks a lot,

Markus
I made a new trial:

The error appears in the following line of the
Callback class:
_camera_callback.disown_Callback(self)

I guess the problem is in the
static PyObject *_wrap_disown_Callback
function?
How could I get rid of it?

Thanks for any hints to get rid of this error.

Markus

PS
The application is a C++ Thread providing a callback function,
when a new camera image on the firewire bus is available.
Then I want to inform a python object that it can fetch the new
image data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top