BUG: OL97: Custom Form Server Process Remains in Memory

ID: Q184834


The information in this article applies to:
  • Microsoft Outlook 8.03


SYMPTOMS

Custom form servers, created with C/C++ for use with Microsoft Outlook and Outlook 98, may not unload from memory when expected.


CAUSE

This behavior occurs because Outlook does not call ShutdownForm if the form server's InitNew method returns an E_FAIL error.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Behavior

  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.


Additional query words:

Keywords : MAPIFORM
Version : WINDOWS:8.03
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: January 11, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.