Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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
Goto Forum:
  


Current Time: Tue Aug 12 02:25:02 CEST 2025

Total time taken to generate the page: 0.00909 seconds