Discussion:
restart application
(too old to reply)
user
2007-07-14 02:14:58 UTC
Permalink
i was wondering is there anyway that i can force the application
to restart?there is nothing like Application->Restart(),only
Application->Terminate,i want to force the application to
terminate and then start again.Thanks
Ed Mulroy [TeamB]
2007-07-14 02:44:53 UTC
Permalink
With WinExec or CreateProcess you can start a new copy of the program and
then end the current one.

. Ed
Post by user
i was wondering is there anyway that i can force the application
to restart?there is nothing like Application->Restart(),only
Application->Terminate,i want to force the application to
terminate and then start again.Thanks
Remy Lebeau (TeamB)
2007-07-14 03:22:54 UTC
Permalink
Post by Ed Mulroy [TeamB]
With WinExec or CreateProcess you can start a new
copy of the program and then end the current one.
To add to that, the call to WinExec/CreateProcess() it usually done from a
second application that the main application runs at shutdown. The second
application waits for the main application to fully exit before then
re-running the main application. This way, the main application only has
one instance running at a time without any overlap.


Gambit

Loading...