Fortunately today is the weekend, there is time to take note of this problem. Switching between multiple languages, found that the development efficiency drop is very low, the development costs are concentrated on the mode, C/s, the abandonment for a long time, suddenly feel the thread of the problem is a bit irritable
I am referring to the thread in the update UI, in big data concurrency, and CPU time fragmentation, not verified, project tight you understand. If you're as eager as I am, you can think about it.
That's the whole thing.
// Netdatahandler is called by a non-UI main thread you now see that the two functions are placed on the UI form Public void Netdatahandler (string jsondata) {
Because Merhodinvoker cannot pass a parameter, a property is added to the UI class
this. Netdatacontent = jsondata; New MethodInvoker (netdataanalysis); BeginInvoke (INF); } Public void netdataanalysis () { this.netdatacontent
}
Update UI in C # WINFORM thread