I am using a class library to simulate and process data and return results via triggered events.
DataProcessor _dataProcessor
In it I am using a DispatcherTimer to simulate data and raise events when simulated data is available and ready to be pushed to GUI.
Was wondering how best to kill the _dataProcessor?
My experience is that setting
_dataProcessor = null;
does not kill the DispatcherTimer. The events are still raised and still passed up to the GUI.
Do I have to stop/null out the DispatcherTimer before the GAC will dispose of the class library?
Thank you for any guidance as I'm not sure the best way to approach this task in general, yet alone terminating the instance of the class library on demand.