Such as the global variables a, b, c Click on the button, to judge if it is a 0, just waiting for a 1, code continues to go down The main thread that card dead, multithreading tried under fixed
Global variables in class, and can put into 1 0 assignment from other places
CodePudding user response:
Will not work in the main thread, UI interface card death directly, you can't do other operations, you need to do something, may be in another way, another way of thinking
CodePudding user response:
With version should support the async syntax, changed asynchronous is now very simple
Button1_Click method price in front of the async prefix