[Pyrex] Problems deallocing objects...

Michael P. Dubner pywebmail at list.ru
Sat Sep 25 01:31:07 CEST 2004


John Sutherland wrote:

>Hello list...
>
>I've been using Pyrex for a few months now.. But now I'm running into an
>odd problem that I can't seem to track down..
>
>I have 2 pyrex based modules.. One wraps access to a proprietary database
>(we'll call it module A), and anotehr one (module B) that imports and
>calls module A..
>
>I have a script that imports and calls module B.. The script executes
>perfectly, except that I get a Windows exception as the script exits..
>Switching both modules to debug, the script runs fine, no exceptions..
>Makes this tough to find...
>
>I did some printf tracing, and found that the crash is happening in the
>dealloc of module B, where it is trying to DECREF the reference to module
>A. . I put some printf's in module A's dealloc, but it never gets called..
>
>Windows XP, MSVC 6.0, and Pyrex 0.9.2.1, Python 2.3.4
>
>Any ideas?
>
>  
>
What about more examples? Try strip code to bare minimum which fails 
(hopefully not depending on your DB) and post it?
It's obvious tip, but you ever can find answer yourself while doing this...

-- 
Best regards,
Michael Dubner (dubnerm at mindless.com)
Brainbench MVP/HTML+JavaScript (http://www.brainbench.com)
PS: Sorry for my English





More information about the Pyrex mailing list