RE: GDI leak in command bar?

Mark Kramer <[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <5FFDB5138D9FA547BBF32CE0E3D8269B02C113@TK5EX14MBXW651.wingroup.windeploy.ntdev.microsoft.com>
What? You're still working on WTL? Must be bored

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nenad Stefanovic
Sent: Friday, October 29, 2010 11:35 PM
To: [email protected]
Subject: Re: [wtl] GDI leak in command bar?

Hi Nicos,

That would be me - I'm glad you like the idea for the bitmaps.

You are right about the GDI leak. Fortunately for me, I already fixed that in the current sources, revision 422.If you want to patch files from WTL 8.0, you can just apply changes done for revision 422.

Cheers,
Nenad



On Fri, Oct 29, 2010 at 12:04 AM, umeca74 <[email protected]> wrote:

>
>
> First of all thanks to whoever had the idea to create ARGB bitmaps 
> using a plain imagelist paint command, like it is done in atlctrlw.h!
>
> Now it seems to me that the AddVistaBitmapsFromImageList and similar 
> helpers have a GDI leak as this handle is never released:
>
> HDC hDC = ::GetDC(NULL);
>
> I don't know if this is an automatically managed DC but a ReleaseDC 
> somewhere wouldn't hurt!
>
> nikos
>
>  
>


[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links






------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.