ID: Q184834
The information in this article applies to:
Custom form servers, created with C/C++ for use with Microsoft Outlook and Outlook 98, may not unload from memory when expected.
This behavior occurs because Outlook does not call ShutdownForm if the form server's InitNew method returns an E_FAIL error.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
1. Modify the Platform SDK sample program TOOLFORM. This program is located
in the ..\mssdk\samples\DbMsg\Exchange\Toolform folder of your Platform
SDK installation.
- Change FRM::InitNew in Formprst.cpp. The only line of code in the
method should be:
return(E_FAIL);
- Change FRM::ShutDownForm in Formmapi.cpp. The only line of code in
the method should be:
MessageBox( NULL, "ShutdownForm", NULL, MB_OK );
2. Build a new executable file.
3. Install the TOOLFORM to the Outlook Personal Forms Library.
4. In the Outlook Client, select Choose Form from the Compose menu.
5. Select ToolForm from the Personal Forms Library.
Expected Behavior:
- Observe a message box with the caption "ShutdownForm";
- ToolForm should disappear from the desktop after choosing OK
on the message box.
Observed behavior:
- No message box appears;
- ToolForm remains visible on the desktop.
Keywords : MAPIFORM
Version : WINDOWS:8.03
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbpending
Last Reviewed: May 5, 1998