Microsoft KB Archive/252757

From BetaArchive Wiki
Knowledge Base

Article ID: 252757

Article Last Modified on 10/26/2006


  • Microsoft Exchange Server 5.5 Standard Edition

This article was previously published under Q252757


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.


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


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


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.


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