Home Dashboard Directory Help
Search

GDI object leakage in CMFCToolBarImages::SmoothResize function by duZ3N


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 720894
Opened: 1/25/2012 11:22:29 PM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
2
Workaround(s)
view
0
User(s) can reproduce this bug

Description

In CMFCToolBarImages::SmoothResize, the m_hbmImageWell is not released before assigning it a new handle (hBmpDst).
Details
Sign in to post a comment.
Posted by Microsoft on 4/8/2012 at 7:04 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by duZ3N on 2/15/2012 at 9:10 AM
I have uploaded a demo project. Clicking OK button will resize the images twice and thus leak 2 GDI objects.
Posted by MS-Moderator07 [Feedback Moderator] on 2/7/2012 at 8:48 PM
We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by MS-Moderator07 [Feedback Moderator] on 2/7/2012 at 8:48 PM
Sorry, please ignore my previous comments, We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by MS-Moderator07 [Feedback Moderator] on 2/7/2012 at 8:47 PM
Hi, given that we have not heard back from you in these days. We will go ahead and close this Connect Issue. If you get a chance to review and provide the information requested earlier, you can go ahead and reactivate this issue.
Posted by MS-Moderator07 on 2/7/2012 at 8:45 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by MS-Moderator01 on 1/25/2012 at 11:45 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by MS-Moderator07 on 1/26/2012 at 7:13 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by duZ3N on 1/25/2012 at 11:41 PM
Before using the CMFCToolBarImages::SmoothResize function, save the handle returned by CMFCToolBarImages::GetImageWell and release it later if the newly returned handle by CMFCToolBarImages::GetImageWell is different from the previous one.

Note: Other MFC classes that use CMFCToolBarImages may call CMFCToolBarImages::SmoothResize during the paint cycle to scale the image if required.
File Name Submitted By Submitted On File Size  
BugExample.rar 2/15/2012 124 KB