Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ThisForm.Release does not close DE?
Message
From
18/02/2011 12:35:36
 
 
To
18/02/2011 07:49:18
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01500685
Message ID:
01500752
Views:
123
>Hi Experts,
>
>I did a form class for data entry purposes. It uses a DE class (a subclass) and CA classes in it (also subclasses). I have an oDataLayer property which I assign an object reference to the DEClass like so:
>
>ThisForm.oDataLayer = EVALUATE( "ThisForm." + This.DEClass )
>
>It has a Cancel method which at the end, does a ThisForm.Release.
>
>The form's release fires alright. The form disappears. But checking the Data Session window, the cursors are still there! And although the form disappears from sight, it is still in the Windows menu of our VFP IDE.
>
>The Destroy event of my form class has this:
>
>ThisForm.oDataLayer = NULL
>
>I have put in MESSAGEBOX markers in the Destroy of the form and the DE classes. The form destroy fires, but the DE destroy does not.
>
>If I instantiate the DE class by itself, it works properly in the sense that RELEASEing it automatically close the tables/cursors as well.

Have you set AutoCloseTables to .T. in the DE?

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform