Home > Mobile >  SWIG/Python: Unable to access referenced parameter in Python callback
SWIG/Python: Unable to access referenced parameter in Python callback

Time:09-22

In SWIG, I've got a wrapped C base class that is inherited in Python. The C side invokes callbacks on the Python derived class, which works fine. Unfortunately, one of the parameters of the callback is passed as reference. Accessing this reference yields:

Fatal unhandled exception: SWIG director method error. Error detected when calling 'Base.Start'

test.i

%module(directors="1", allprotected="1") test
           
  • Related