Microsoft KB Archive/171427: Difference between revisions
m (Text replacement - "[[../mapi/q" to "[[../") |
m (Text replacement - """ to """) |
||
Line 52: | Line 52: | ||
Dim objSession As Object | Dim objSession As Object | ||
Dim objMsg As Object | Dim objMsg As Object | ||
Set objSession = CreateObject( | Set objSession = CreateObject("MAPI.Session") | ||
objSession.Logon | objSession.Logon "MyProfileName", "", False | ||
'With the following line commented leak does not occur | 'With the following line commented leak does not occur | ||
Line 72: | Line 72: | ||
# Place the earlier code in a Visual Basic 5 form with two command buttons and a text box, then run the form. | # Place the earlier code in a Visual Basic 5 form with two command buttons and a text box, then run the form. | ||
# Click '''+''' in the toolbar. | # Click '''+''' in the toolbar. | ||
# In the Object dropdown, select | # In the Object dropdown, select "Process." | ||
# In the '''Instance''' list box, select Visual Basic. | # In the '''Instance''' list box, select Visual Basic. | ||
# In the '''Counter''' list box, select | # In the '''Counter''' list box, select "Private Bytes" then select Add.. | ||
# In the '''Counter''' list box, select | # In the '''Counter''' list box, select "Virtual Bytes" then choose '''Add''' again. | ||
Over a period of time you will be able to note that while Private Bytes is remaining relatively stable, the Virtual Bytes will be on a slow but steady increase until the system has no available memory left to provide to the process.<br /> | Over a period of time you will be able to note that while Private Bytes is remaining relatively stable, the Virtual Bytes will be on a slow but steady increase until the system has no available memory left to provide to the process.<br /> |
Latest revision as of 11:05, 21 July 2020
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 INFORMATIONSteps 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:
Over a period of time you will be able to note that while Private Bytes is remaining relatively stable, the Virtual Bytes will be on a slow but steady increase until the system has no available memory left to provide to the process. REFERENCESFor additional information about Collaboration Data Objects versus Active Messaging, please see the following article in the Microsoft Knowledge Base:
Additional query words: Keywords : kbcode kbActMsg kbCDO110 kbCDO121 kbGrpMsg kbDSupport |
Last Reviewed: October 14, 1999 |