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

Home » U++ Library support » U++ MT-multithreading and servers » How to use CoWork and Progress together?
Re: How to use CoWork and Progress together? [message #53538 is a reply to message #53511] Thu, 09 April 2020 10:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Well, it obviously breaks rules here:

void Progress::Process()
{
	if(!IsOpen()) {
		dword t = msecs();
		if((int)(t - show_time) >= show_delay) {
			Create(); // !!! no top-level window manipulation in non-main thread
			show_time = t;
		}
	}
	if(IsOpen()) {
		GuiSleep(0); // no message processing in non-main thread
		ProcessEvents();
	}
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [NOT REPRODUCIBLE] HttpRequest gzip format error
Next Topic: ASyncWork/CoWork Cancel() method leads to deadlock (when used with GuiLock)
Goto Forum:
  


Current Time: Sun May 24 18:38:08 GMT+2 2026

Total time taken to generate the page: 0.00487 seconds