Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

Consider the following scenario:

  • You use Microsoft Visual Studio 2010 to develop a Microsoft Visual C++ 2010 Microsoft Foundation Class (MFC) application. The application uses a tabbed multiple-document interface (MDI) layout.

  • You run the MFC application on your computer.

  • While the application is running, you close the last document tab and then create a new document in the application.

In this scenario, the application unexpectedly consumes 10 additional Graphics Device Interface (GDI) handles. The GDI handle resource usage increases every time that you close the last document tab and then create new documents. This behavior may eventually cause a GDI handle leak.

Cause

This issue occurs because the GDI front handles are not released correctly by the MFC library when the last document tab is closed.

Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:

http://support.microsoft.com/contactus/?ws=supportNote In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.


Note After you install this hotfix, you need to activate the fix by adding the following code to the startup code of the application, for example to the InitInstance method:

g_bReuseRemovedTabGroups = TRUE;

Prerequisites

To apply this hotfix, you must have Visual Studio 2010 Service Pack 1 installed.

Restart requirement

You do not have to restart the computer after you install the hotfix if the affected files are not being used during the installation process. We recommend that you close all Visual Studio 2010-related components before you install the hotfix.

Hotfix replacement information


This hotfix does not replace any other hotfix.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For all supported versions of Visual Studio 2010

File name

File version

File size

Date

Time

Platform

Atl100.dll

10.0.40219.434

138,800

06-Dec-2012

08:29

x86

Atl100.dll

10.0.40219.434

386,112

06-Dec-2012

08:42

IA-64

Atl100.dll

10.0.40219.434

159,296

06-Dec-2012

09:10

x64

Mfc100.dll

10.0.40219.434

5,579,840

06-Dec-2012

09:10

x64

Mfc100.dll

10.0.40219.434

4,400,704

06-Dec-2012

09:27

x86

Mfc100chs.dll

10.0.40219.434

36,912

06-Dec-2012

09:10

x64

Mfc100chs.dll

10.0.40219.434

36,936

06-Dec-2012

09:27

x86

Mfc100cht.dll

10.0.40219.434

36,936

06-Dec-2012

09:10

x64

Mfc100cht.dll

10.0.40219.434

36,912

06-Dec-2012

09:27

x86

Mfc100d.dll

10.0.40219.434

9,144,368

06-Dec-2012

10:15

x64

Mfc100d.dll

10.0.40219.434

7,064,112

06-Dec-2012

10:45

x86

Mfc100deu.dll

10.0.40219.434

65,096

06-Dec-2012

09:10

x64

Mfc100deu.dll

10.0.40219.434

65,072

06-Dec-2012

09:27

x86

Mfc100enu.dll

10.0.40219.434

55,880

06-Dec-2012

09:10

x64

Mfc100enu.dll

10.0.40219.434

55,856

06-Dec-2012

09:27

x86

Mfc100esn.dll

10.0.40219.434

64,560

06-Dec-2012

09:10

x64

Mfc100esn.dll

10.0.40219.434

64,584

06-Dec-2012

09:27

x86

Mfc100fra.dll

10.0.40219.434

65,096

06-Dec-2012

09:10

x64

Mfc100fra.dll

10.0.40219.434

65,096

06-Dec-2012

09:27

x86

Mfc100ita.dll

10.0.40219.434

63,048

06-Dec-2012

09:10

x64

Mfc100ita.dll

10.0.40219.434

63,048

06-Dec-2012

09:27

x86

Mfc100jpn.dll

10.0.40219.434

44,616

06-Dec-2012

09:10

x64

Mfc100jpn.dll

10.0.40219.434

44,592

06-Dec-2012

09:27

x86

Mfc100kor.dll

10.0.40219.434

44,104

06-Dec-2012

09:10

x64

Mfc100kor.dll

10.0.40219.434

44,080

06-Dec-2012

09:27

x86

Mfc100rus.dll

10.0.40219.434

61,488

06-Dec-2012

09:10

x64

Mfc100rus.dll

10.0.40219.434

61,488

06-Dec-2012

09:27

x86

Mfc100u.dll

10.0.40219.434

5,605,936

06-Dec-2012

09:10

x64

Mfc100u.dll

10.0.40219.434

4,425,792

06-Dec-2012

09:27

x86

Mfc100ud.dll

10.0.40219.434

9,220,672

06-Dec-2012

10:15

x64

Mfc100ud.dll

10.0.40219.434

7,132,720

06-Dec-2012

10:45

x86

Mfcm100.dll

10.0.40219.434

93,744

06-Dec-2012

09:10

x64

Mfcm100.dll

10.0.40219.434

82,480

06-Dec-2012

09:27

x86

Mfcm100d.dll

10.0.40219.434

120,368

06-Dec-2012

10:15

x64

Mfcm100d.dll

10.0.40219.434

104,496

06-Dec-2012

10:45

x86

Mfcm100u.dll

10.0.40219.434

93,744

06-Dec-2012

09:10

x64

Mfcm100u.dll

10.0.40219.434

82,480

06-Dec-2012

09:27

x86

Mfcm100ud.dll

10.0.40219.434

121,904

06-Dec-2012

10:15

x64

Mfcm100ud.dll

10.0.40219.434

106,032

06-Dec-2012

10:45

x86

Mfcmifc80u.dll

10.0.40219.434

13,872

07-Dec-2012

12:17

x86

Msvcp100.dll

10.0.40219.434

421,936

06-Dec-2012

08:29

x86

Msvcp100.dll

10.0.40219.434

967,232

06-Dec-2012

08:42

IA-64

Msvcp100.dll

10.0.40219.434

608,816

06-Dec-2012

09:10

x64

Msvcp100d.dll

10.0.40219.434

1,979,952

06-Dec-2012

09:51

IA-64

Msvcp100d.dll

10.0.40219.434

1,015,344

06-Dec-2012

10:21

x64

Msvcp100d.dll

10.0.40219.434

744,496

06-Dec-2012

10:50

x86

Msvcr100_clr0400.dll

10.0.40219.434

774,192

06-Dec-2012

08:29

x86

Msvcr100_clr0400.dll

10.0.40219.434

1,500,208

06-Dec-2012

08:42

IA-64

Msvcr100_clr0400.dll

10.0.40219.434

830,016

06-Dec-2012

09:10

x64

Msvcr100d_clr0400.dll

10.0.40219.434

3,764,784

06-Dec-2012

09:51

IA-64

Msvcr100d_clr0400.dll

10.0.40219.434

1,873,968

06-Dec-2012

10:21

x64

Msvcr100d_clr0400.dll

10.0.40219.434

1,506,352

06-Dec-2012

10:50

x86

Vcomp100.dll

10.0.40219.434

144,448

06-Dec-2012

08:42

IA-64

Vcomp100.dll

10.0.40219.434

58,928

06-Dec-2012

09:10

x64

Vcomp100.dll

10.0.40219.434

52,288

06-Dec-2012

09:27

x86

Vcomp100d.dll

10.0.40219.434

318,536

06-Dec-2012

09:46

IA-64

Vcomp100d.dll

10.0.40219.434

108,592

06-Dec-2012

10:09

x64

Vcomp100d.dll

10.0.40219.434

89,648

06-Dec-2012

10:39

x86

Vcomp100ui.dll

10.0.40219.434

10,296

07-Dec-2012

12:17

x86

Vcomp100ui.dll

10.0.40219.434

10,312

07-Dec-2012

12:17

x86

Vcomp100ui.dll

10.0.40219.434

10,808

07-Dec-2012

12:17

x86

Vcomp100ui.dll

10.0.40219.434

10,824

07-Dec-2012

12:17

x86

Vcomp100ui.dll

10.0.40219.434

11,848

07-Dec-2012

12:17

x86

Vcomp100ui.dll

10.0.40219.434

12,344

07-Dec-2012

12:17

x86

Vcomp100ui.dll

10.0.40219.434

12,360

07-Dec-2012

12:17

x86

Vcredist_ia64.exe

10.0.40219.434

3,051,512

06-Dec-2012

12:52

x86

Vcredist_x64.exe

10.0.40219.434

10,285,024

06-Dec-2012

12:55

x86

Vcredist_x86.exe

10.0.40219.434

9,007,072

06-Dec-2012

12:58

x86


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×