Microsoft KB Archive/841817

= FIX: Atl70.dll causes a handle leak in the AtlAxWindowProc class in Visual Studio .NET 2002 =

Article ID: 841817

Article Last Modified on 5/15/2006

-

APPLIES TO


 * Microsoft Visual Studio .NET 2002 Academic Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Professional Edition

-



SYMPTOMS
When ActiveX controls are hosted in windows that are created by using the CAxWindow class, and then the windows are destroyed, the process of creating and of destroying the hosting window causes a handle leak. This problem occurs if none of the properties of the ActiveX controls are set.

If the process of creating and of destroying the windows is performed frequently, the process leads to handle starvation and unexpected application behavior. When ActiveX controls are hosted on the CAxWindow class, Microsoft Active Template Library (ATL) allocates a global handle that is not freed when the window is destroyed. This causes a handle leak.



RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

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

http://support.microsoft.com/contactus/?ws=support

Note 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.

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 tool in Control Panel.

  Date         Time   Version            Size    File name --  12-Sep-2002  14:50                     39,733  Afxdao.h   05-May-2004  02:57                     14,546  Atl.lib 05-May-2004 14:48                     97,792  Atl.sys.redist 05-May-2004 02:57  7.0.9781.0         84,992  Atl70.dll 23-Jul-2002 18:08                      3,443  Atlbase.cpp 23-Jul-2002 18:08                    163,480  Atlbase.h   20-Jan-2003  17:07                     16,396  Atlcomtime.inl 23-Jul-2002 18:08                     15,521  Atlcore.h   04-May-2004  16:19                     76,520  Atlhost.h   23-Jul-2002  18:08                     43,105  Atlimage.h   05-May-2004  02:57                     48,090  Atlmincrt.lib 05-May-2004 02:57                    934,264  Atls.lib 05-May-2004 02:56                  1,003,890  Atlsd.lib 11-Nov-2002 19:45                     63,284  Cstringt.h   05-Dec-2002  17:21                    116,779  Dbcore.cpp 05-May-2004 04:10                    282,816  Eafxis.lib 05-May-2004 04:10                    273,800  Eafxisd.lib 05-May-2004 04:33                    392,265  Mfc70.def 05-May-2004 05:00  7.0.9781.0      1,028,096  Mfc70.dll 05-May-2004 04:16                  2,287,020  Mfc70.lib 05-May-2004 05:00                  1,149,706  Mfc70.map 05-May-2004 04:28  7.0.9781.0         40,960  Mfc70chs.dll 05-May-2004 04:28  7.0.9781.0         45,056  Mfc70cht.dll 05-May-2004 04:13                    527,756  Mfc70d.def 05-May-2004 04:14  7.0.9781.0      2,072,576  Mfc70d.dll 05-May-2004 04:15                  3,066,694  Mfc70d.lib 05-May-2004 04:14                  1,791,935  Mfc70d.map 05-May-2004 04:27  7.0.9781.0         61,440  Mfc70deu.dll 05-May-2004 04:28  7.0.9781.0         57,344  Mfc70enu.dll 05-May-2004 04:28  7.0.9781.0         61,440  Mfc70esp.dll 05-May-2004 04:27  7.0.9781.0         61,440  Mfc70fra.dll 05-May-2004 04:28  7.0.9781.0         61,440  Mfc70ita.dll 05-May-2004 04:28  7.0.9781.0         49,152  Mfc70jpn.dll 05-May-2004 04:28  7.0.9781.0         49,152  Mfc70kor.dll 05-May-2004 04:34                    393,034  Mfc70u.def 05-May-2004 04:50  7.0.9781.0      1,017,344  Mfc70u.dll 05-May-2004 04:20                  3,042,324  Mfc70u.lib 05-May-2004 04:16                    528,736  Mfc70ud.def 05-May-2004 04:16  7.0.9781.0      2,066,944  Mfc70ud.dll 05-May-2004 04:18                  3,978,842  Mfc70ud.lib 05-May-2004 04:16                  1,842,071  Mfc70ud.map 12-Sep-2002 14:50                      7,662  Mfcdll.mak 05-May-2004 04:34                    505,780  Mfcs70.lib 05-May-2004 04:14                    526,960  Mfcs70d.lib 05-May-2004 04:35                    452,554  Mfcs70u.lib 05-May-2004 04:17                    468,956  Mfcs70ud.lib 05-May-2004 04:10                 16,468,248  Nafxcw.lib 05-May-2004 04:10                 16,598,814  Nafxcwd.lib 05-May-2004 04:10                    122,026  Nafxis.lib 05-May-2004 04:10                    123,608  Nafxisd.lib 06-Nov-2003 16:12                     24,333  Occcont.cpp 19-Sep-2002 22:18                     44,958  Oledisp1.cpp 05-May-2004 04:13                 16,743,758  Uafxcw.lib 05-May-2004 04:13                 17,032,228  Uafxcwd.lib 05-Nov-2002 15:40                     34,858  Viewprev.cpp 13-Oct-2003 17:42                     19,200  Winocc.cpp



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbbug kbfix kbqfe kbvs2002sp1sweep kbhotfixserver KB841817

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.