Microsoft KB Archive/189917

= PRB: VisualFoxPro.Application Object Does Not Release =

Article ID: 189917

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q189917



SYMPTOMS
Releasing the variable assigned to a VisualFoxPro.Application COM object will release the variable but will not terminate the application.



RESOLUTION
In order to terminate the application, the QUIT method must be executed, as in objMyVFPObject.Quit. Here's an example:

In the Command window, issue the following commands: objMyVFPObject = CREATEOBJECT("visualfoxpro.application") objMyVFPObject.visible = .t.  objMyVFPObject.QUIT &&This releases the variable and terminates the application.



STATUS
This behavior is by design.



MORE INFORMATION
Releasing the assigned variable does not terminate the Visual FoxPro Application object. The object's QUIT method must be used to terminate the Application object.

Steps to Reproduce Behavior
  In the Command window, issue the following commands: objMyVFPObject = CREATEOBJECT("visualfoxpro.application") objMyVFPObject.visible = .t.     RELEASE objMyVFPObject &&This releases the variable but the application is still active. 

Additional query words: kbVFp500a kbVFp600 kbXBase

Keywords: kbprb KB189917

-

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

© Microsoft Corporation. All rights reserved.