Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Reset an application


This question is answered.


Permlink Replies: 2 - Last Post: Dec 13, 2016 3:18 PM Last Post By: Garrett B
Garrett B

Posts: 77
Registered: 10/2/16
Reset an application  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 13, 2016 10:13 AM
Hi

Is there a way to reset/restart an application?
Currently if I need to do this I just prompt the user that the application will be closed automatically, and that the user must then restart it.

Regard

Garrett
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Reset an application
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 13, 2016 2:53 PM   in response to: Garrett B in response to: Garrett B
Garrett wrote:

Is there a way to reset/restart an application?

Not natively, no. You would have to code it manually by calling CreateProcess()
directly with the filename of the calling process (use Application->ExeName
or ParamStr(0) to get that), and then exit the current process. If needed,
have the new process wait until the old process has fully terminated before
then continuing with its initialization.

--
Remy Lebeau (TeamB)
Garrett B

Posts: 77
Registered: 10/2/16
Re: Reset an application  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 13, 2016 3:18 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Thanks Remy

I think I'll give it a miss for now :)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02