<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>8 Nov 2017 23:20:00 Z</lastBuildDate><pubDate>8 Nov 2017 23:20:00 Z</pubDate><description>Does anyone know how to restart the app after closing the exception window?&#13;
&#13;
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.&#13;
&#13;
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.&#13;
&#13;
IF ExeRunning() &gt; 1 AND NOT InTestMode() THEN Info("Only one instance of the application can be run at a time.") EndProgram(True) END</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63257-wd20-restartprogram-from-exception-window/read.awp</link><title>[WD20] RestartProgram() From Exception Window</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
