Restart Application not immediatly
-
Hi,
Then delete your files before doing the restart.
-
@Belfix
Yes, it can be difficult/not possible to delete files which are presently open/locked in an application.if i restart my app with "startDetached" the files are not deleted by the new process because the "old process" locks it...
Do you exit the "old process" immediately after the
startDetached()
call?startDetached()
does not "restart" the calling application, it starts a new process independently.If both the old and the new processes store stuff in/lock
...\Local Storage\leveldb
I don't see how you are going to delete things there. -
@Belfix said in Restart Application not immediatly:
The startDetached is called after the application exit with code (-1)
I doubt this is going to work.
I would rather start a batch script which first waits a bit and then starts the app. After starting that script via startDetached you can normally exit your app. -