Is there a good way to look for resource leakages in wxPython? I could disable chunks of code until I isolate the problem, but this could take a while.
The problem is that if I leave my application running for, say, an hour, the resouces drop to close to zero. If I wait too long I sometimes have to reboot. There isn’t any immediate noticable effect, which is why a brute force search for the problem would be time consuming.
What is interesting is that there isn’t any idle processing going on that I’m aware of, so I’m not sure what code could be executing that eats resources over time.
I am using wxPython 2.2, python 2.1, and Windoze ME.
Thanks,
Ken Seehof
www.neuralintegrator.com
Ken Seehof:
Is there a good way to look for resource leakages
in wxPython? I could disable chunks of code until
I isolate the problem, but this could take a while.
You could run it under a program checker like BoundsChecker. I'd expect
to see a lot of false or uninteresting warnings though, as even just running
up Python generates a lot. BoundsChecker has to flag a lot of things that
are suspicious or where it has lost track of some use such as when a pointer
is returned as an integer and then stored in an integer variable. Still, if
you know what sort of resources you are leaking, it may well be able to give
you a set of stack traces to check for problems. BoundsChecker is expensive
(about US$500) but you can try it out for a short period.
http://www.numega.com
As an indication of how much I like BoundsChecker, I was only prepared to
buy the cheap version of Visual C++ with my own money but then spent more
than 5 times as much on a copy of BoundsChecker.
Neil