Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON SHUTDOWN procedure not working
Message
From
29/10/1998 11:26:20
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00151892
Message ID:
00152370
Views:
25
>>>Add a CLEAR EVENTS to the shutdown procedure
>>
>>Thanks for your reply, was any particular place in the shutdown procedure where I should have added the CLEAR EVENTS ? I replaced John's ON SHUTDOWN suggestion on the first line with CLEAR EVENTS but it seemed to have no effect.
>
>Donny,
>
>Then you've got some object reference floating around un released. The position of the CLEAR EVENTS should make no difference as long as it is in there.

Jim

But should'nt the CLEAR ALL in the MyShutdown procedure take care of any unreleased objects? As I understand it releasing all memory varable references to an object destroys the object, correct? The MyShutdown procedure now looks like this:
PROCEDURE MyShutdown
   CLEAR EVENTS
   CLEAR ALL
   CLOSE ALL
   QUIT
ENDPROC
Anyway, I tried puting a messagebox('shutdown procedure') as the first line in the MyShutdown procedure but it never fired so now I think something is preventing the procedure from executing. Any ideas what could cause that? I copied the procedure to a prg by the same name but that did'nt help. One other thing to clearify my original post, if the X button is selected the application screen goes away and task manager does not show it runing but it leaves files open. Excuse me I have to reboot now.
Donny Sims

Life is what happens to us while were busy making other plans.
- John Lennon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform