Memory Leaks: the bane of every desktop app programmer's existence! :lol:
Have you ever run into these? How do you debug them?
I write a lot of stuff in Java, so I use the Java profiler tool to look at the memory graph and see whether it's healthy. As long as the memory returns to about the same level after I press the "College garbage" button, I can be pretty certain that there isn't a leak. When there is a leak, the profiler does a decent job of showing you who's using up memory or CPU. If that doesn't work, then I use the Eclipse Memory Analyzer, and that will find a bunch of suspects. 🙂
Have you ever run into these? How do you debug them?
I write a lot of stuff in Java, so I use the Java profiler tool to look at the memory graph and see whether it's healthy. As long as the memory returns to about the same level after I press the "College garbage" button, I can be pretty certain that there isn't a leak. When there is a leak, the profiler does a decent job of showing you who's using up memory or CPU. If that doesn't work, then I use the Eclipse Memory Analyzer, and that will find a bunch of suspects. 🙂







