Logga in med Microsoft
Logga in eller skapa ett konto.
Hej,
Välj ett annat konto.
Du har flera konton
Välj det konto som du vill logga in med.
Engelska
Vi beklagar. Den här artikeln är inte tillgänglig på ditt språk.

Symptoms

Consider the following scenario:

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

  • You run the MFC application on your computer.

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

In this scenario, the application consumes ten additional Graphics Device Interface (GDI) handles unexpectedly. 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 (SP1) 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 a previously released hotfix.

File information

The global 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 x86-based versions of Microsoft Visual C++ 2010 SP1 Redistributable Package




File name

File version

File size

Date

Time

Platform

Atl100.dll

10.0.40219.434

138,800

06-Dec-2012

08:29

x86

Mfc100.dll

10.0.40219.434

4,400,704

06-Dec-2012

09:27

x86

Mfc100chs.dll

10.0.40219.434

36,936

06-Dec-2012

09:27

x86

Mfc100cht.dll

10.0.40219.434

36,912

06-Dec-2012

09:27

x86

Mfc100deu.dll

10.0.40219.434

65,072

06-Dec-2012

09:27

x86

Mfc100enu.dll

10.0.40219.434

55,856

06-Dec-2012

09:27

x86

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:27

x86

Mfc100ita.dll

10.0.40219.434

63,048

06-Dec-2012

09:27

x86

Mfc100jpn.dll

10.0.40219.434

44,592

06-Dec-2012

09:27

x86

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:27

x86

Mfc100u.dll

10.0.40219.434

4,425,792

06-Dec-2012

09:27

x86

Mfcm100.dll

10.0.40219.434

82,480

06-Dec-2012

09:27

x86

Mfcm100u.dll

10.0.40219.434

82,480

06-Dec-2012

09:27

x86

Msvcp100.dll

10.0.40219.434

421,936

06-Dec-2012

08:29

x86

Msvcr100_clr0400.dll

10.0.40219.434

774,192

06-Dec-2012

08:29

x86

Vcomp100.dll

10.0.40219.434

52,288

06-Dec-2012

09:27

x86

For all supported x64-based versions of Microsoft Visual C++ 2010 SP1 Redistributable Package



File name

File version

File size

Date

Time

Platform

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

Mfc100chs.dll

10.0.40219.434

36,912

06-Dec-2012

09:10

x64

Mfc100cht.dll

10.0.40219.434

36,936

06-Dec-2012

09:10

x64

Mfc100deu.dll

10.0.40219.434

65,096

06-Dec-2012

09:10

x64

Mfc100enu.dll

10.0.40219.434

55,880

06-Dec-2012

09:10

x64

Mfc100esn.dll

10.0.40219.434

64,560

06-Dec-2012

09:10

x64

Mfc100fra.dll

10.0.40219.434

65,096

06-Dec-2012

09:10

x64

Mfc100ita.dll

10.0.40219.434

63,048

06-Dec-2012

09:10

x64

Mfc100jpn.dll

10.0.40219.434

44,616

06-Dec-2012

09:10

x64

Mfc100kor.dll

10.0.40219.434

44,104

06-Dec-2012

09:10

x64

Mfc100rus.dll

10.0.40219.434

61,488

06-Dec-2012

09:10

x64

Mfc100u.dll

10.0.40219.434

5,605,936

06-Dec-2012

09:10

x64

Mfcm100.dll

10.0.40219.434

93,744

06-Dec-2012

09:10

x64

Mfcm100u.dll

10.0.40219.434

93,744

06-Dec-2012

09:10

x64

Msvcp100.dll

10.0.40219.434

608,816

06-Dec-2012

09:10

x64

Msvcr100_clr0400.dll

10.0.40219.434

830,016

06-Dec-2012

09:10

x64

Vcomp100.dll

10.0.40219.434

58,928

06-Dec-2012

09:10

x64

For all supported IA-64-based versions of Microsoft Visual C++ 2010 SP1 Redistributable Package



File name

File version

File size

Date

Time

Platform

Atl100.dll

10.0.40219.434

386,112

06-Dec-2012

08:42

IA-64

Msvcp100.dll

10.0.40219.434

967,232

06-Dec-2012

08:42

IA-64

Msvcr100_clr0400.dll

10.0.40219.434

1,500,208

06-Dec-2012

08:42

IA-64

Vcomp100.dll

10.0.40219.434

144,448

06-Dec-2012

08:42

IA-64

Status

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

Behöver du mer hjälp?

Vill du ha fler alternativ?

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.

Hade du nytta av den här informationen?

Vad påverkade din upplevelse?
Genom att trycka på skicka, kommer din feedback att användas för att förbättra Microsofts produkter och tjänster. IT-administratören kan samla in denna data. Sekretesspolicy.

Tack för din feedback!

×