SWIG callback problem on win32

Markus von Ehr vonehr at ipm.fhg.de
Tue May 18 09:05:19 EDT 2004


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



More information about the Python-list mailing list