NullReferenceException from wyUpdate.Controls.UpdateHelper

Hi,In our application that uses the AutomaticUpdaterBackend, it was observed in one scenario that the application crashed with the following error logged in eventviewer.

Exception Info : System.NullReferenceExceptionStack: at wyDay.Controls.UpdateHelper.bw_RunWorkerCompleted(System.Object,System.ComponentModel.RunWorkerCompletedEventArgs)at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,System.Threading.ContextCallback,System.Object,Boolean)at ....at System.Threading.ThreadPoolWorkQueue.Dispatch().

What could have caused this? I can provide a screenshot of the exception if that helps.

Regards,Srividya

Can you reproduce it? Can you give me steps to reproduce it? What step in the update process does this happen?

It happens when we call Cancel() on AutomaticBackendHelper.

We invoke this Cancel at the time when our application is shutting down (in our Dispose() method), say when the user is stopping the application or restarting it etc, so that if autoUpdate was in the middle of some tasks, it can stop its work before we shut down our application.

Is this is the correct way to ask autoUpdate to stop its work?Do you have a code-snippet of the ideal way to handle the shutdown process.

Is this is the correct way to ask autoUpdate to stop its work?

No, it isn't. Don't bother canceling when you close your app - -wyUpdate already does that.

But we'll look into it all the same.