Preventing MSVC in showing static allocation as memory leaks

Mark Hammond mhammond at skippinet.com.au
Mon Feb 10 17:02:06 EST 2003


Jakob Simon-Gaarde wrote:
> I am embedding python in a Windows application using MSVC. It is
> common knowledge that all the static allocations that the python
> interpreter make appear as memoryleaks in the VC-IDE. I was wondering
> if anybody knows a way to suppress the display of these leaks. First
> of all because I'm just generally annoyed by looking at them, and then
> there is the issue of spotting a real leak if it appears along with 50
> leakdumps from the interpreter.

Not that I am aware of.  As I understand things, the professional leak 
detectors can all differentiate between once-only-allocs-not-freed and 
true leaks.

Mark.





More information about the Python-list mailing list