Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shutting down app
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00388798
Message ID:
00388873
Views:
15
Paul,

You should be able to just call goApp.OnShutDown() like you are trying to do. What I would recommend is placing your ShellExec call before calling goApp.OnShutDown().

HTH

>I've got an app where I need to be able to shutdown the program via a button on a form then start up another program. The code looks like:
>
>goApp.OnShutDown()
>ShellExec(lcApp, "open", "Z", lcAppPath)
>
> The ShellExec works fine, but I get an "Object does not exist" error when using the OnShutDown() call. I'm assuming that's because of the shutdown order (ie. an object the form is depending on is released before the form is). Is there some other way I should be handling this?

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform