Microsoft KB Archive/184834

= BUG: OL97: Custom Form Server Process Remains in Memory =

Article ID: 184834

Article Last Modified on 3/4/2004

-

APPLIES TO


 * Microsoft Outlook 97 Standard Edition

-



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.



Steps to Reproduce Behavior
 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 );   Build a new executable file. Install the TOOLFORM to the Outlook Personal Forms Library.</li> In the Outlook Client, select Choose Form from the Compose menu.</li> Select ToolForm from the Personal Forms Library.</li></ol>

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: kbbug kbpending KB184834

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.