A handle leak occurs in MAPI when you create an IMAPIFolder object by using the IMsgStore::OpenEntry() method in Exchange 2000 Server or in Exchange Server 2003 (842922)
The information in this article applies to:
- Microsoft Exchange Server 2003 Enterprise Edition
- Microsoft Exchange Server 2003 Standard Edition
- Microsoft Exchange 2000 Server
- Microsoft Exchange 2000 Enterprise Server
SYMPTOMSWhen you programmatically create an IMAPIFolder object by using the IMsgStore::OpenEntry() method, you experience both of the following symptoms: - Your program eventually stops responding because of memory-related exception errors.
- If you troubleshoot the cause of the memory issue by viewing the Handles counter in the Performance tool, you notice that handles are not released in your program's executable file for the Messaging Database (MDB) that you opened.
CAUSEThis issue occurs if you release the IMsgStore object before you release the IMAPIFolder object that you created by using the IMsgStore::OpenEntry() method. Because of security changes in Microsoft Exchange 2000 Server and in Microsoft Exchange Server 2003, you must release the IMAPIFolder object before you release the IMsgStore object in that MDB.RESOLUTIONTo resolve this issue, release the IMAPIFolder object that is created by the IMsgStore::OpenEntry() method before you release the IMsgStore object.
Modification Type: | Major | Last Reviewed: | 6/30/2004 |
---|
Keywords: | kbDiskMemory kbenv kbprb KB842922 kbAudDeveloper kbAudITPRO |
---|
|