[C++-sig] Passing a reference to my object to python
Lawrence.Spector at CanfieldSci.com
Tue Jul 3 15:30:41 CEST 2007
So far, what I've done is build a Boost.Python extension for my python
script to use. It exposes one class for the script to use, let's say
called CppClass. This seems to work okay. I'm using Boost.Python and
the Python API to interpret the script from C++ code. During this
process, I want to pass a reference to an instance of the object that
already exists in my C++ code. I tried the following:
When I run, I get a first chance exception:
I'm sure I'm missing something important. Any idea what's going wrong?
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Cplusplus-sig