ID: Q188958
The information in this article applies to:
During testing and deployment of an Extended Messaging Application Programming Interface (MAPI) client or service provider, it may appear that the application is leaking memory. It is often difficult to find the exact cause of a memory leak. This article lists several possible reasons for memory leaks in MAPI client or service provider applications.
There are several logic errors that may cause this problem. A list of possible reasons follows. This is not a comprehensive list, but it does cover the most common problems developers have run into in their code.
Make sure you always use the MAPIAllocateBuffer, MAPIAllocateMore and MAPIFreeBuffer functions to allocate and deallocate memory off of the heap space.
When implementing your own interfaces, be sure to follow the rules of COM as strictly as possible to guarantee minimum memory loss from your application.
Additional query words: kbMsg kbMAPI100 kbMAPI
Keywords : kbfaq
Technology : kbMsg kbMAPI
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: July 7, 1998