Debugging under a different operating system than the one you are developing on is time consuming and annoying. The way I do it is to start disabling bits of your program to see if that makes the problem (in this case a resource leak) go away. Each "round" takes several minutes.
Oh joy, debugging can be so much fun, just like a great big mystery treasure hunt! I am currently trying to nail a JujuEdit problem which is only occurring under Win98, and which is apparently related to GDI resource allocation. If you never need to work with the centuries old API which handles drawing under Windows, you are one of the lucky ones. It’s crap!
Later that day…
I finally found where JujuEdit was leaking resources under Win98, and even now I’m not sure I understand why it was doing so. Am I shaming myself by admitting that? If the Windows GDI were beautifully designed, I would be ashamed to not understand its functionality in toto. As it is, it is full of legacy crap and leaves the programmer to manage resources that it should be more than capable of handling itself. Hmmm, maybe I should get a Mac…