Defect - Exception thrown when calling StartLoop() while RunWorkerAsync() is busy
: 1.0.85 (r105790)
: Windows 7 (x64)
Source of Error
- Execute test app using, StartLoop(true);
- Call, StartLoop(..) again.
- Begin test app with StartLoop(true);
- Call "_sparkle.StopLoop();" then immediately, "_sparkle.StartLoop(true, true);"
Error will be thrown stating that RunWorkerAsync()
is currently busy.
Handle the error and report it in debug window (see suggested workaround)
public void StartLoop(Boolean doInitialCheck, Boolean forceInitialCheck, TimeSpan checkFrequency)
// start the work
// Added try/catch for when RunWorkerAsync() is currently busy so we don't crash the app (2014-01-14 DJS)
catch (Exception exc)
_DiagnosticWindow.Report("Error: Could not execute 'RunWorkerAsync()'. " + exc.Message);