>>>>>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.