Re: [C++-sig] Reference count on class object and import()

2010-11-02 Thread Jim Bosch
On 11/02/2010 11:04 AM, Simon W wrote: Alright, it was a couple of days ago since I last had a look on this and it turns out that issue described in my first mail still persists. Although I had a typo. Swap 4 with 3 on the reference count. Also, when Im using PyImport_Import() directly it also sh

Re: [C++-sig] Reference count on class object and import()

2010-11-02 Thread Simon W
Alright, it was a couple of days ago since I last had a look on this and it turns out that issue described in my first mail still persists. Although I had a typo. Swap 4 with 3 on the reference count. Also, when Im using PyImport_Import() directly it also shows 2 reference counts? On Tue, Oct 26

Re: [C++-sig] Reference count on class object and import()

2010-10-26 Thread Simon W
Of course, I did find another reference that I didn't notice. Python reference works as expected .. hehe! On Mon, Oct 25, 2010 at 7:35 PM, Simon W wrote: > Hey again, > > I'm trying to implement a load / unload module functionallity. When I > delete the module in the __main__ dict the module's r

[C++-sig] Reference count on class object and import()

2010-10-25 Thread Simon W
Hey again, I'm trying to implement a load / unload module functionallity. When I delete the module in the __main__ dict the module's reference count is still > 1. I've been trying to find if I reference it anywhere else in my code but I can't find anything! When I did a check in vc++ debugger foun