Microsoft KB Archive/891509

= A memory leak condition occurs when you create a CDO program or a MAPI32 program to log on or log off many mailboxes in Exchange Server 2003 SP1 =

Article ID: 891509

Article Last Modified on 10/30/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Service Pack 1

-



Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you create a program that uses Collaborative Data Objects (CDO) or MAPI32 to log on to or to log off mailboxes, you may experience a memory leak condition when you use this program to access many mailboxes in Microsoft Exchange Server 2003 Service Pack 1 (SP1).



CAUSE
This problem occurs if your CDO or MAPI program uses impersonation to access these Exchange 2003 SP1 mailboxes. This problem occurs because certain MAPI heap cleanup code is not enabled in Exchange Server 2003 SP1.



Hotfix 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 Exchange Server 2003 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.

Prerequisites
You must be running Exchange 2003 Service Pack 1 (SP1) to install this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

836993 How to obtain the latest service packs for Exchange Server 2003

Restart requirement
You do not have to restart your 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 tool in Control Panel.

Date        Time   Version            Size    File name -- 28-Jan-2005 03:13  6.5.7232.75       708,608  Cdo.dll 28-Jan-2005 03:12  6.5.7232.75       635,904  Mapi32.dll

Hotfix installation information
Note The program that is using CDO or MAPI must be on the same computer as Exchange Server 2003. Otherwise, the memory leak may still occur.

This hotfix adds the following value to the Windows registry:

Value name: CleanUpMAPIHeap

Value type: REG_DWORD

Value data: 0 or 1

Note Set this registry value to &quot;1&quot; to enable the MAPI heap cleanup code.



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

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

817903 New naming schema for Exchange Server software update packages

Additional query words: XADM, MAPI, CDO, Leak, Impersonation, enumerate, messages, logon, logoff

Keywords: kbqfe kbhotfixserver kbexchange2003presp2fix kbfix kbbug KB891509

-

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

© Microsoft Corporation. All rights reserved.