I re-factored some code today, and in the process managed to create a lock deadlock for myself. In the end it turned out to be an exception was being thrown when a lock was held, and adding a try / finally resolved the real underlying problem. However, in the process I ended up writing this…
Tag: debug
Interesting technique for finding leaks in code
So, your code leaks and you need a technique for finding what object you’re leaking, so grab a couple of addresses at random and dump them. Chances are, they’re the object your leaking. This technique is so sexy in it’s beauty. [icbm: home]