I'm trying to update a chart with data generated by a timer event, while waiting for a specified number of seconds, but the timer is not firing while my method DoHold below is is running. I can make it work using DoEvents in place of the thread.
Dim d as New date
DoHold(EndTime) ' During this hold I'm waiting for until EndTime (D.Totalseconds + a constant) is reached
Sub DoHold(EndTime) ' The timer is not firing while this code is running, but it does if this is replaced with a DoEvents loop. What is disabling the timer?
Dim D as new date
holding = (HoldEnd > D.TotalSeconds)