Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot quit visual foxpro
Message
From
06/07/2001 00:27:15
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00526105
Message ID:
00527314
Views:
37
>>>>>I've created a .exe
>>>>>
>>>>> When I click at the upper-right side X at the corner
>>>>> I appears the message:
>>>>>
>>>>> Cannot quit visual foxpro
>>>>>
>>>>> What do I have to do ?
>>>>
>>>>
>>>>You could get that message if you have open connections, open references to objects, etc.
>>>>
>>>>Make sure you clean up (do garbage collection) by setting object references to NULL or use RELEASE. Also look at the following commands:
>>>>CLEAR ALL
>>>>RELEASE ALL
>>>>CLOSE ALL
>>>>ON SHUTDOWN
>>>
>>>Additionally, make sure that if you use any arrays that you clear their contents
>>>as well as the arrays themselves.
>>
>>Why? What good would that do? CLEAR ALL will certainly zap the contents of an array just fine.
>
>I've had a couple of occurances of arrays which were properties of forms which would not clear out by only using a clear all statement. I needed to manually
>clear them out and then release or clear the form.

Very well could be, but I've never seen any circumstance where that's true. I've only ever seen a problem with some objects not being released that are stored in properties of a form (single property or an array property), so I'll clean those up in the destroy of the form, but even then, CLEAR ALL cleans that up just fine. I think you'd have to show me an example that CLEAR ALL *doesn't* handle.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform