XCLN: Memory Leak in Loop Accessing Collaboration Data Objects (252757)



The information in this article applies to:

  • Microsoft Exchange Server 5.5

This article was previously published under Q252757

SYMPTOMS

Microsoft Visual Basic code that uses Collaboration Data Objects (CDO) and that logs on to a mailbox, gets a folder object, and then sets the object to nothing in a loop causes a memory leak.

CAUSE

The reference count for an internal object never reaches zero and it is reallocated, which causes the memory leak.

RESOLUTION

To resolve this problem, obtain the latest service pack for Exchange Server 5.5. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

191014 XGEN: How to Obtain the latest Exchange Server 5.5 Service Pack

STATUS

Microsoft has confirmed that this is a problem in Exchange Server 5.5. This problem was first corrected in Exchange Server 5.5 Service Pack 4.

MORE INFORMATION

The following code may cause the memory leak:
Dim CdoExpStore As InfoStore
Dim i As Integer
Dim Cdoexpfolder As MAPI.Folder

    For i = 1 To 10000
        Set Cdoexpfolder = CdoExpStore.RootFolder
        Set Cdoexpfolder = Nothing
    Next i
				

Modification Type:MinorLast Reviewed:9/23/2005
Keywords:kbHotfixServer kbQFE kbbug kbExchange550preSP4fix kbExchange550sp4Fix kbfix kbQFE KB252757