Microsoft KB Archive/252757

= XCLN: Memory Leak in Loop Accessing Collaboration Data Objects =

Article ID: 252757

Article Last Modified on 10/26/2006

-

APPLIES TO


 * Microsoft Exchange Server 5.5 Standard Edition

-



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

Keywords: kbhotfixserver kbqfe kbbug kbexchange550presp4fix kbexchange550sp4fix kbfix kbqfe KB252757

-

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

© Microsoft Corporation. All rights reserved.