Microsoft KB Archive/324841

= OL2000: Access Violation Using MAPIUninitialize After Accessing IMAP Store =

Article ID: 324841

Article Last Modified on 10/11/2005

-

APPLIES TO


 * Microsoft Outlook 2000 Standard Edition

-



This article was previously published under Q324841



SYMPTOMS
When you use a custom program to programmatically access an IMAP store to open a hierarchy table, immediately close the store and unintitalize MAPI, you may receive an Access Violation error in OUTLCM!CAccountManager::~CAccountManager when MAPIUninitialize is called.



RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Office 2000 service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:   Date          Time       Size        File name --  08-Nov-2002   17:52:16     235,520   Olkintl.msp 08-Nov-2002  18:03:36   1,428,480   Olkintl_Admin.msp After the hotfix is installed, the English version of this fix will have the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date          Time       Version       Size      File name ---  30-Oct-2002   12:40:36   5.5.2656.94   720,144   Cdo.dll (Windows Me/98/95) 30-Oct-2002  12:39:10   5.5.2656.94   813,328   Cdo.dll (Windows NT) 02-Nov-2002  01:16:24   5.5.3184.0    154,112   Emsabp32.dll 25-Sep-2002  19:21:54   5.5.3182.0    131,344   Emsui32.dll 09-Oct-2002  17:31:16   5.5.3183.0    540,944   Exsec32.dll 23-Jul-2002  14:47:26   8.30.3173.0   782,608   Outex.dll 23-Jul-2002  14:41:28   9.0.6718.0    368,691   Pstprx32.dll This fix is a post-Office 2000 Service Pack 3 (SP-3) fix. To install the fix, you must have Office 2000 SP-3 installed. For additional information about Office 2000 SP-3, click the following article number to see the article in the Microsoft Knowledge Base:

326585 OFF2000: Overview of Office 2000 Service Pack 3

Additionally, you may have to install Windows Installer 2.0 to install this fix. For additional information about the Windows Installer requirement for post-Office 2000 SP-3 fixes, click the following article number to see the article in the Microsoft Knowledge Base:

811002 OFF2000: Office 2000 Updates and Patches Released After November 2002 May Require Windows Installer 2.0



MORE INFORMATION
This fix also requires the addition of a new flag to be passed to GetHierarchyTable to disable the asynchronous hierarchy synchronization. The value of this flag is 0x4000 hexadecimal. Add this flag to the ulFlags parameter when calling GetHierarchyTable as:

hr = m_lpFolder->GetHierarchyTable( MAPI_DEFERRED_ERRORS | 0x4000, &m_lpFolderTable );



WORKAROUND
A call to Sleep can be made just before calling MAPIUninitialize if you suspect you are experiencing this symptom. The value that is passed to Sleep may have to be adjusted depending on your environment. Testing has shown that a value of 1000 or 2000 milliseconds is generally sufficient to make it possible for the IMAP store to close before uninitializing MAPI.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Keywords: kbbug kbfix kbqfe kbenv kbprb kbofficexppresp3fix kbhotfixserver KB324841

-

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

© Microsoft Corporation. All rights reserved.