[C++-sig] Memory Leak in MFC/C++ based Python Extended/Embedded code.
Niall Douglas
s_sourceforge at nedprod.com
Tue Jan 8 22:32:41 CET 2008
On 7 Jan 2008 at 21:13, Stefan Seefeld wrote:
> > The minimal code STILL reports a memory error. It looks like the memory
> > leak had nothing to do with my code.
> >
> > Anybody have any ideas how to fix this?
>
> It isn't clear that there is actually anything to fix. Reporting memory
> errors isn't easy, and most tools I have used in the past are erroneous.
> For example, I once used a memory leak checker with MSVC that generated
> its table even before global objects of my application had been
> destroyed. It obviously generated wrong results, and thus was of little use.
>
> I'm not sure whether you can assist your leak detector by forcing a gc
> cleanup in python.
Glowcode is THE leak detection program for Windows. Worth every
penny. And no I have no commercial association with them, the tool is
simply that good.
Cheers,
Niall
More information about the Cplusplus-sig
mailing list