Hi Peter,
You didn't respond to the DeleteObject() issue, why? Still using hWnd in there? If you're not prepared to discuss and fix your, er, questionable design solutions then why publish at all? I wasn't talking about how well your application closes, I was rather talking about how well it actually runs, be it under XP or 7 or anything else. The leakage won't disapper unless you fix your code in conformity with the Windows SDK specs.
OK if you want me to, I can shoot a short movie under 7 to demonstrate what unfixed DeleteObject() does to system resources.
And no, I do not panic, ever. My signature on the FBSL forum reads literally as follows:
Mike
"Я старый солдат, мадам, и не знаю слов любви."
"I am an old soldier, ma'am, and I don't know the words of love."
"Je suis un vieux soldat, madame, et je ne connais pas les mots d'amour."
"Ich bin ein alter Soldat, gnädige Frau, und ich weiß nicht die Worte der Liebe."
____________________________________________________________________________________________
(2.2GHz Core2 Duo, 4GB RAM / 2 x GeForce 8600 GTS SLI-bridged, 1GB VRAM)
(x86 Win XP Pro Russian Sp3/x86 Win Vista Ultimate SP1/x64 Win 7 Ultimate Sp1/x64 Win 8 Consumer Preview)
Now please relax yourself and don't you panic either - I'm joking too.
In fact, I'm an extremely easy guy to get along with. But when I must, I don't bite, I just gnaw throats without prior notice.