U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » Can't use MT to capture console output
Re: Can't use MT to capture console output [message #61173 is a reply to message #61172] Thu, 28 November 2024 22:07 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1428
Registered: September 2007
Ultimate Contributor
Hmmm, adding a Sleep(5) or 10 in ExecutableThread makes the GUI responsive again.

		while (globalExecutor.Read(t)) {
			if (t.GetCount()) {
				//DUMP(t);
				PostCallback(callback1(test, &Test::AddOutputLine, t));
				Sleep(5);
			}
		}


The goal is for it to be responsive and the user to figure out that it hanged, so they can stop the process.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HTTPREQUEST using Proxy not working -- SOLVED
Next Topic: Websocket issue
Goto Forum:
  


Current Time: Thu Oct 15 01:42:55 GMT+2 2026

Total time taken to generate the page: 0.00651 seconds