Hi,
>Resource Leaks: Detecting, Locating, and Repairing Your Leaky GDI Code
>
http://msdn.microsoft.com/msdnmag/issues/01/03/leaks/Tucked in there was something I simply didn't know existed: the /View/Select Columns option on the Task Manager Processes page. Knowing of that a couple of days ago would have been enough to have saved a few hours!
I added the 'GDI Objects' column. With the app running it now fluctuates around the 370-380 mark. When I removed the DeleteObject() fix in the OCX it climbed away and hung when the count hit 10,000. (The count actually stops at *exactly* 10,000 - more than a coincidence ?)
BTW this was a pretty obscure leakage - one of the tech support guys calculated that the user must have changed the ink cartridges about five times before the application hung !
Thanks for the links,
Viv