List Info

Thread: Re: ownership of C++ object extended in Python




Re: ownership of C++ object extended in Python
country flaguser name
Canada
2007-03-22 15:49:58
> I am also looking for solution. I think I have
something, but I am not sure.
> I think if you create small and complete test case,
submit it may be more
> knowledgeable developers will be able to help you.
> If I will make some progress I will let you know
> 

Thanks again for your help. I've produced what I believe to
be a fairly 
minimal test case, attached. When run it produces the
output:

Calling test funcion...
Entering test()...
Making PythonDerived object...
Holding...
Retrieving held PythonDerived object...
Calling member function of held PythonDerived object...
** my string data **
PythonDerived object goes out of Python scope here...
Leaving test()...
PythonDerived.__del__

Retrieving held PythonDerived object...
Calling member function of held PythonDerived object...
** my string data **
PythonDerived.__del__
Segmentation fault




Mark

_______________________________________________
C++-sig mailing list
C++-sigpython.org
http:
//mail.python.org/mailman/listinfo/c++-sig

  
  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )