PRB: Memory Leak in Active Messaging v1.1 Folder Handling ProcesLast reviewed: November 21, 1997Article ID: Q171427 |
The information in this article applies to:
SYMPTOMSThere is a reproducible 4k memory leak in the Active Messaging version 1.1 folder handling process.
RESOLUTIONThe only available workaround at this time is to periodically shutdown the process that is slowly consuming available memory.
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce the BehaviorThe following code sample from a Visual Basic 5 Form will reproduce this leak. The leak can be monitored in the Windows NT Performance Monitor, or in the Windows NT Task Manager.
Private Sub Command1_Click()
For i = 1 To 200 Step 1
'Update counter on form to show progress
Text1.Text = i
Text1.Refresh
'Dim objects, then create and logon to session
Dim objSession As Object
Dim objMsg As Object
Set objSession = CreateObject("MAPI.Session")
objSession.Logon "MyProfileName", "", False
'With the following line commented leak does not occur
Set objMsg = objSession.Inbox.Messages.GetFirst
'Cleanup and logoff
Set objMsg = Nothing
objSession.Logoff
Set objSession = Nothing
Next i
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
To monitor this in the Performance Monitor:
The only way to recover the lost memory is to shutdown the process.
REFERENCESFor additional information about Collaboration Data Objects versus Active Messaging, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q176916 TITLE : INFO: Active Messaging and Collaboration Data Objects (CDO) Keywords : kbcode ActMsg Version : WINDOWS:1.1 Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |