Open Hanson opened 4 years ago
You can't carry out GUI-related actions from another thread or goroutine. You should use the synchronization functions provided by Walk to run a function on the GUI thread.
and this is an example of how you do that. The variable mainWindow might have a different name in your program currently!
mainWindow.Synchronize(func() {
put code to update screen here
})
when I start the exe , I will create a tcp client to dial server every 3 seconds and I want to record the response to the listBox.
But It will exit with error that I don't know what it is.