[cairo] Huge leak in Cairo/win32

Peter Dennis Bartok peter at novonyx.com
Thu Feb 24 13:23:54 PST 2005


>Where is your method documented? There is not a single place in
>the SDK docs (other than in some of the examples) that I can find
>that describes a need to save the initial bitmap and restore it.
>
>It is documented that you can't delete a bitmap selected into a DC,
>but once the DC is deleted, the bitmap can't be selected into it,
>can it?
I've not fully been following this discussion, so I may have missunderstood 
the context, but MS documentation for SelectObject says this:

This function returns the previously selected object of the specified type. 
An application should always replace a new object with the original, default 
object after it has finished drawing with the new object.

An application cannot select a bitmap into more than one DC at a time.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_9v3o.asp












More information about the cairo mailing list