DOCUMENT:Q191311 11-DEC-1999 [foxpro] TITLE :BUG: Class Not Released After Being Deleted From Form PRODUCT :Microsoft FoxPro PROD/VER:WINDOWS:5.0,5.0a OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a ------------------------------------------------------------------------------- SYMPTOMS ======== Attempting to modify a class library, a .vcx file, can cause the following error to occur after you delete it from a form: Cannot modify a class that is in use. CAUSE ===== A reference to the class library remains in memory after deleting the object from the form. RESOLUTION ========== Close the form before modifying the class. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This behavior does not occur in Visual FoxPro 6.0. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a class based on a Command button and name it Ztest. Save it to a class library named Ztest.vcx. 2. Create a form and add the Ztest command button to the form. 3. Click the Ztest Command button class and delete it from the form. 4. With the form still open, attempt to open and modify the Ztest class library, and the error occurs. Additional query words: kbVFp500abug kbDesigner kbvfp500a kbVFp500bug ====================================================================== Keywords : Technology : kbVFPsearch kbAudDeveloper kbVFP500 kbVFP500a Version : WINDOWS:5.0,5.0a Issue type : kbbug Solution Type : kbnofix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1999.