On 23.09.2010 12:46, Eric Sunshine wrote: > On 09/23/2010 06:41 AM, Eric Sunshine wrote: >> Perhaps an explicit csPath -> iPath typemap is needed. The typemap would >> make a local reference-counted copy of the input csPath, hand the copy >> to low-level SetPath(), and then decrement its own reference to the >> copy. The original input csPath can then go out of scope without causing >> harm to the path ultimately handed to setPath(). > > More specifically, the output of the csPath -> iPath typemap would > likely have to be a csPtr<iPath> wrapping the copy for this to work.
Actually, it seems SWIG has ‘native’ support for reference counting nowadays: http://www.swig.org/Doc1.3/Python.html#Python_nn27a - it would seem the easierst to simply use that for classes such as csPath. -f.r.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Cel-main mailing list Cel-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cel-main