> Yes, but it may be unrelated to the memory leak:
> The first SelectObject() has a return value: it returns the previously
> selected bitmap. You are supposed to select the original bitmap back into
> the memory DC before calling DeleteDC on it. But I don't know if it
> actually makes a difference in practice.

The Borland docs do this. However, Petzold doesn't do this. It doesn't affect the
memory leak, though. I guess I'll be on the safe side and put it in the next patch
(which will be sent if I ever can fix this memory leak).
Thanks,

Joshua

_____________________________________________
NetZero - Defenders of the Free World
Click here for FREE Internet Access and Email
http://www.netzero.net/download/index.html

Reply via email to