Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WD20] RestartProgram() From Exception Window

$
0
0
Does anyone know how to restart the app after closing the exception window?

I imported the windows into my app so I could customize them. I added a button that has a single line of code, RestartProgram(), but this does not work. RestartProgram() does work if I call it from my main window, but when I call it from the exception window all it does is close the app.

This is a 32 bit windows app. In the generation of my exe I allow multiple instances, but I actually disallow this by putting the following code at the beginning of my project initialization. I do it this way so that I can control the error message shown to our users.

IF ExeRunning() > 1 AND NOT InTestMode() THEN
	Info("Only one instance of the application can be run at a time.")
	EndProgram(True)
END

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>