<?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 Aug 2016 14:44:00 Z</lastBuildDate><pubDate>8 Aug 2016 14:44:00 Z</pubDate><description>Hi everyone,&#13;
&#13;
I'm using an Event function that calls the function #RestartTimer with this syntax:&#13;
Event(#RestartTimer, "WIN_Main.*", WM_MOUSEACTIVATE)&#13;
&#13;
Basically, it triggers whenever i click on a control found on the window, and #RestartTimer closes a thread (if its state is threadRunning) and then it opens again, as shown below:&#13;
&#13;
IF ThreadState("TH_idle") = threadRunning THEN ThreadStop("TH_idle")&#13;
ThreadExecute("TH_idle",threadWaitForStart,#Timer)&#13;
&#13;
I've tried to trigger the event via project testing, and it hasn't skipped a beat, but I've tried that via the generated executable, and the exe freezes... How do I fix that?&#13;
TIA</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59016-event-function-crashes-application/read.awp</link><title>[WD]Event function crashes the application</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
