Friday, September 21, 2018

static sabotage

When attempting this sort of threading with messaging by actions back to the UI, I don't think one may use static methods for the actions out of static utility classes that get loaded on the main/root thread. I have experienced some errors wherein I am told that I cannot update a WinFroms control because the wrong thread is accessing it and all I can think of in what could be going wrong is that I have drilled into a method with a signature of static async void and have tried to call out to an action handed in at the signature from inside. I don't see what another variable might be.

No comments:

Post a Comment