The information in this article applies to:
SYMPTOMSWhen writing an application that uses simple MAPI you may encounter Memory leaks. CAUSERepeated calls to MAPILogoff() within the same application may result in a significant memory leaks. An example would be if a programmer designed an application that needed to periodically poll for new messages. A poorly optimized algorithm would appear like this:
RESOLUTIONInstead you should Cache the MAPI Session, changing the example to this:
You could also use Extended MAPI to avoid this problem.
MORE INFORMATION
Additional query words:
Keywords : SMapiCMC |
Last Reviewed: November 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |