BUG: OL97: Custom Form Server Process Remains in Memory (184834)



The information in this article applies to:

  • Microsoft Outlook 97 8.03

This article was previously published under Q184834

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.

Modification Type:MinorLast Reviewed:3/4/2004
Keywords:kbbug kbpending KB184834