Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unexpected behavior
Message
From
09/09/1999 09:28:02
 
 
To
09/09/1999 08:28:15
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00262790
Message ID:
00262843
Views:
16
>Hi All ---
>
>Running VFP6 SP3: Have something really weird (at least to me) going on. I have a Form with a Private DataSession. It can launch a modal Form using the Default DataSession (it inherits the table from the DataSession of the parent Form).
>
>As an experiment, I changed the child Form to Modeless. Ran the application; opened the parent and the child. Went back to the parent and closed it. The child Form still works fine.
>
>What is going on here? I thought when I closed the parent Form, I'd get "table not available" or some other error message because the DataSession that opened the table is now gone.

Nope - the Data Environment is an object, and the child form maintained a pointer to it, so the object didn't get killed off automagically...a good thing about dangling object refs in ths case.

Now osme tables may have been closed by closing the parent form, but that effect is different...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform