Search

CMFCButton causes memory leak by vc6fan

Closed
as Fixed Help for as Fixed

4
0
Sign in
to vote
Type: Bug
ID: 577870
Opened: 7/23/2010 3:04:14 PM
Access Restriction: Public
0
Workaround(s)
1
User(s) can reproduce this bug
Adding an "MFC Button" control in a VC++ dialog causes memory leak upon exit.
Details (expand)

Visual Studio/Silverlight/Tooling version

Visual Studio 2010

What category (if any) best represents this feedback?

 

Steps to reproduce

Create a dialog-based MFC project. Use dialog editor to add an MFC-Button.

Example: CONTROL "MfcButton1",IDC_MFCBUTTON1,"MfcButton",WS_TABSTOP,70,83,50,14


Compile, run, and exit. Output screen reports memory leak.

Product Language

 

Operating System

 

Operating System Language

 

Actual results

 

Expected results

 
File Attachments
0 attachments
Sign in to post a comment.
Posted by vc6fan on 8/11/2010 at 2:10 PM
I tried your suggestion and the memory leak error message went away. Thank you very much.
Posted by Microsoft on 8/10/2010 at 2:42 PM
Hello,

Thanks for the report. This has been fixed in MFC for a future release of Visual Studio. In the meantime, as a workaround, make sure to call ControlBarCleanUp from your application class ExitInstance method.

Pat Brenner
Visual C++ Libraries Development
Posted by Microsoft on 7/24/2010 at 7:08 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.