FIX: A memory leak occurs when a managed application uses a platform invoke call to call an unmanaged function in the .NET Framework 2.0

Article translations Article translations
Article ID: 934334 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • In the Microsoft .NET Framework 2.0, you create a managed application.
  • The managed application uses a platform invoke call to call an unmanaged function.
  • The managed application contains a structure that uses a string array parameter.
In this scenario, a memory leak occurs.

Note This problem also occurs if the managed application contains a structure that uses a structure array parameter, and the structure array parameter contains a string member.

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 .NET Framework 2.0 service pack 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 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.

Prerequisites

You must have the .NET Framework 2.0 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

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.
The .NET Framework 2.0, x86-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.821802,30419-Mar-200719:31x86
Mscorjit.dll2.0.50727.821326,65619-Mar-200719:31x86
Mscorlib.dll2.0.50727.8214,308,99219-Mar-200719:31x86
Mscorpe.dll2.0.50727.821102,91219-Mar-200719:31x86
Mscorwks.dll2.0.50727.8215,633,02419-Mar-200719:31x86
Normalization.dll2.0.50727.82115,36019-Mar-200719:31x86
Normidna.nlpNot applicable59,34219-Mar-200719:31Not applicable
Normnfc.nlpNot applicable45,79419-Mar-200719:31Not applicable
Normnfd.nlpNot applicable39,28419-Mar-200719:31Not applicable
Normnfkc.nlpNot applicable66,38419-Mar-200719:31Not applicable
Normnfkd.nlpNot applicable60,29419-Mar-200719:31Not applicable
Peverify.dll2.0.50727.821136,19219-Mar-200719:31x86
Sos.dll2.0.50727.821382,46419-Mar-200719:31x86
Vsavb7rt.dll8.0.50727.8211,330,68819-Mar-200719:31x86
The .NET Framework 2.0, x64-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.8211,597,44019-Mar-200711:20x64
Mscorjit.dll2.0.50727.8211,587,71219-Mar-200711:18x64
Mscorlib.dll2.0.50727.8213,960,83219-Mar-200714:36x64
Mscorpe.dll2.0.50727.821157,18419-Mar-200711:12x64
Mscorpjt.dll2.0.50727.8212,004,99219-Mar-200711:18x64
Mscorwks.dll2.0.50727.82110,334,20819-Mar-200711:16x64
Normalization.dll2.0.50727.82118,43219-Mar-200711:17x64
Normidna.nlpNot applicable59,34219-Mar-200711:19Not applicable
Normnfc.nlpNot applicable45,79419-Mar-200711:19Not applicable
Normnfd.nlpNot applicable39,28419-Mar-200711:19Not applicable
Normnfkc.nlpNot applicable66,38419-Mar-200711:19Not applicable
Normnfkd.nlpNot applicable60,29419-Mar-200711:19Not applicable
Peverify.dll2.0.50727.821205,82419-Mar-200711:18x64
Sos.dll2.0.50727.821480,76819-Mar-200711:27x64
The .NET Framework 2.0, Itanium-based versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscordacwks.dll2.0.50727.8212,719,23219-Mar-200711:21IA-64
Mscorjit.dll2.0.50727.8212,705,92019-Mar-200711:19IA-64
Mscorlib.dll2.0.50727.8213,960,83219-Mar-200715:27IA-64
Mscorpe.dll2.0.50727.821313,85619-Mar-200711:12IA-64
Mscorpjt.dll2.0.50727.8213,501,05619-Mar-200711:19IA-64
Mscorwks.dll2.0.50727.82121,317,63219-Mar-200711:17IA-64
Normalization.dll2.0.50727.82144,03219-Mar-200711:18IA-64
Normidna.nlpNot applicable59,34219-Mar-200711:20Not applicable
Normnfc.nlpNot applicable45,79419-Mar-200711:20Not applicable
Normnfd.nlpNot applicable39,28419-Mar-200711:20Not applicable
Normnfkc.nlpNot applicable66,38419-Mar-200711:20Not applicable
Normnfkd.nlpNot applicable60,29419-Mar-200711:20Not applicable
Peverify.dll2.0.50727.821383,48819-Mar-200711:19IA-64
Sos.dll2.0.50727.821862,72019-Mar-200711:29IA-64

STATUS

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

MORE INFORMATION

For more information about software update terminology, 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: 934334 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft .NET Framework 2.0
Keywords: 
kbfix kbqfe KB934334

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