Right now I have created a custom base class that has numerous events.ÃÂ These events have non-standard signatures and are fired from a thread I have that is basically just a while loop checking variables against older ones for telling when something has changed.
As far as I know this is the best way to go about doing this is to just make a void on another thread in a while (true) loop, in the loop just doing ifs... than doing a thread sleep.ÃÂ I make sure the thread is a background thread that way it'll exit propertly when the consumer exits.ÃÂ If anyone knows a beter way of going about this than stop reading here. :)
If not that onto my real question... I have events that are fired from this loop on the thread I created, now they're attatched on the consumer app and no matter what I do I can't seem to get these events to be thread-safe so that I don't have to use the Control.Invoke method for each event.
If anyone knows anything that'll help me out it'll be much appreciated.
View Complete Post