FIX: A memory leak may occur when COM objects are passed as VARIANT in the Microsoft .NET Framework 1.0

Article translations Article translations
Article ID: 839046 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
For a Microsoft Microsoft .NET Framework 1.1 version of this article, see 839047.
Expand all | Collapse all

On This Page

SYMPTOMS

When a Component Object Model (COM) object is passed as a parameter in a COM Interop function call, the object will not be released if the parameter is defined as a VARIANT parameter and the function returns a failure HRESULT.

CAUSE

This problem occurs because COM Interop does not correctly clean up the VARIANT parameter if the COM function returns a failure HRESULT.

RESOLUTION

Software update information

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it 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 Microsoft .NET Framework 1.0 service pack that contains this hotfix.

To resolve this problem immediately, 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.

File information

The English version of this software update has the file attributes (or later) 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
   -------------------------------------------------------------------------------------------
   24-Mar-2004  12:33  1.0.3705.493    200,704  Aspnet_isapi.dll
   24-Mar-2004  12:27                    4,169  Aspnet_perf.h
   24-Mar-2004  12:33                  513,302  Aspnet_perf.ini
   24-Mar-2004  12:33                  510,714  Aspnet_perf2.ini
   24-Mar-2004  12:33  1.0.3705.493     24,576  Aspnet_regiis.exe
   24-Mar-2004  12:33  1.0.3705.493     28,672  Aspnet_wp.exe
   24-Mar-2004  11:53  1.0.3705.493     69,632  Corperfmonext.dll
   29-Apr-2003  22:59                   16,597  Installpersistsqlstate.sql
   29-Apr-2003  23:00                   17,331  Installsqlstate.sql
   12-Aug-2003  17:48                   17,807  Installsqlstatetemplate.sql
   24-Mar-2004  11:51  1.0.3705.493    299,008  Mscorjit.dll
   26-Mar-2004  01:30  1.0.3705.493  1,953,792  Mscorlib.dll
   24-Mar-2004  11:40                   10,284  Mscorlib.ldo
   24-Mar-2004  11:53  1.0.3705.493  2,199,552  Mscorsvr.dll
   24-Mar-2004  11:52  1.0.3705.493  2,265,088  Mscorwks.dll
   24-Mar-2004  12:30  1.0.3705.493     20,480  Perfcounter.dll
   01-Aug-2002  21:38                       15  Smartnav.htm
   29-Jul-2003  20:30                    8,728  Smartnav.js
   26-Mar-2004  01:29  1.0.3705.493  1,179,648  System.data.dll
   26-Mar-2004  01:29  1.0.3705.493  1,695,744  System.design.dll
   26-Mar-2004  01:29  1.0.3705.493  1,175,552  System.dll
   26-Mar-2004  01:29  1.0.3705.493    241,664  System.messaging.dll
   26-Mar-2004  01:29  1.0.3705.493    311,296  System.runtime.remoting.dll
   26-Mar-2004  01:29  1.0.3705.493    131,072  System.runtime.serialization.formatters.soap.dll
   26-Mar-2004  01:30  1.0.3705.493  1,200,128  System.web.dll
   26-Mar-2004  01:29  1.0.3705.493    507,904  System.web.services.dll
   26-Mar-2004  01:29  1.0.3705.493  1,994,752  System.windows.forms.dll
   24-Mar-2004  12:39                   16,608  System.windows.forms.ldo
   24-Mar-2004  12:34  1.0.3705.493     57,344  System.windows.forms.tlb
   26-Mar-2004  01:29  1.0.3705.493  1,302,528  System.xml.dll
   26-Mar-2004  01:29  1.0.3705.493     32,768  Tlbimp.exe
   08-Jan-2002  20:13                    1,419  Uninstallpersistsqlstate.sql
   12-Aug-2003  17:48                    2,119  Uninstallsqlstatetemplate.sql
   26-Mar-2004  01:29  1.0.3705.493     65,536  Wsdl.exe

STATUS

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

MORE INFORMATION

For additional 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

Properties

Article ID: 839046 - Last Review: October 26, 2013 - Revision: 1.4
APPLIES TO
  • Microsoft .NET Framework 1.0
Keywords: 
kbnosurvey kbarchive kbbug kbfix kbqfe kbnetframe100presp3fix kbhotfixserver KB839046

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com