Hi,
WaitEvent waits 'forever', or until an event occurs so your program is getting 'stuck' inside the waitevent command.
Changing WaitEvent() to WaitEvent(0) will fix it. 0 means 'wait for an event, or until 0 millisecs have elapsed'.
However, this will chew up all the CPU time, which will cause other programs to run slower.
WaitEvent waits 'forever', or until an event occurs so your program is getting 'stuck' inside the waitevent command.
Changing WaitEvent() to WaitEvent(0) will fix it. 0 means 'wait for an event, or until 0 millisecs have elapsed'.
However, this will chew up all the CPU time, which will cause other programs to run slower.