If anyone knows why, please help
I have an Event that is raised for logging messages from the API flow
If the event is raised in the main API all is good and the display of the message in a text box or other control works fine.
If I an event is raised via a message in the Auth client inside the API the update of the control fails with an error about multi threading.
If I try to use the InvokeRequired check which has worked for other multi thread issues in the past it just stalls the API
if (lstResults.InvokeRequired) { lstResults.Invoke((MethodInvoker)delegate { UpdateStatus(sText, lstResults); }); } else {
If anyone knows why, please help
I have an Event that is raised for logging messages from the API flow
If the event is raised in the main API all is good and the display of the message in a text box or other control works fine.
If I an event is raised via a message in the Auth client inside the API the update of the control fails with an error about multi threading.
If I try to use the InvokeRequired check which has worked for other multi thread issues in the past it just stalls the API
if (lstResults.InvokeRequired) { lstResults.Invoke((MethodInvoker)delegate { UpdateStatus(sText, lstResults); }); } else {