when my app has an unhandled exception I do this
create a file called abc.txt and write app.ExecutableFile.AbsolutePath to it
I create another file called abc.bat and write
Start “” “runME.exe”
I then create a shell to run abc.bat where f points to abc.bat
mySHELL.Mode = 0
mySHELL.TimeOut = 1000*30
I then QUIT the crashing app
runME.exe is a small XOJO desktop app to read the path of the sending APP to a folderitem f.
It waits a few seconds and then it LAUNCHes the folderitem
This works fine but is there a nicer way where there is no need for the external app?
Keep in mind this is for Console and WEB apps as well.
So you cannot use Launch
I have tried a BAT to run a BAT both with delays of a few seconds and even though the crashing APP does close the newly run version of the app will start it then immediately closes.
Has anyone figured something out?