Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON SHUTDOWN causes strange error...
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00020073
Message ID:
00020229
Views:
48
>>>I recall some problem like that. What I now use is thisform(set).release before clear events, and also I created a separate prg for cleanup in the project (I can't recall exactly why, but there was some problem).
>>
>>Oh, I just looked at code & I forgot to say that you need NAME param in do form, then NAME.release before clear events in cleanup proc. This seems to cleanup the processing pretty well...
>
>I took a little different approach. Created a ShutDown method in my Form objects. ON SHUTDOWN calls a .prg that calls the ShutDown Method. This allows shutdown from within the Object, with This.Release. Same as Bruce mentioned about using NAME in DOFORM. This works well for one form, but have not tried to loop in the .prg to shutdown multiple forms yet.

That sounds like a good idea, if I ever have any more trouble I'll look into it...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform