Article ID: 174043 - Last Review: September 22, 2005 - Revision: 1.1

XL97: Destructor for ActiveX Control Is Not Called on Exit

This article was previously published under Q174043
Expand all | Collapse all

SYMPTOMS

When you run a custom ActiveX control in Excel 97, the destructor for the ActiveX control may not be called by Excel when you exit Excel.

CAUSE

This behavior may occur when you quit Excel 97 and the embedded ActiveX control is not the currently selected object.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Excel 97. This problem was corrected in Microsoft Office 97 Service Release 2 (SR-2).

For additional information about SR-2, please see the following article in the Microsoft Knowledge Base:
151261  (http://support.microsoft.com/kb/151261/EN-US/ ) OFF97: How to Obtain and Install MS Office 97 SR-2

MORE INFORMATION

Excel does not properly keep track of the ActiveX control's reference count. This behavior causes Excel to fail to call the ActiveX control's Release() function when the ActiveX control is not the currently selected object when you exit Excel.

This causes the destructor function for the ActiveX control to fail to run as it should when Excel is exited.

APPLIES TO
  • Microsoft Excel 97 Standard Edition
Keywords: 
kbhotfixserver kbqfe kbbug kbfix kbprogramming kbqfe KB174043
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations