|
From: | Riccardo Mottola |
Subject: | Re: GUI updates do not show even from separate thread |
Date: | Thu, 7 Jul 2016 12:15:46 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 |
Hi, Fred Kiefer wrote:
Thank you to both you and Sebastian, switching to passive mode made the application work. This really should be the default mode.
I just did it. it is the default now, apparently some firewalls are prickier than others.
Now I see that the transfer happens in a background thread while the UI changes are made in the main thread, just like it should be. Very impressive, I will need some more time to admire this code.
Don't exaggerate!
Now I see the wrong behaviour just like you described it. The progress bar gets updated but only one or two times whereas the download constantly provides the progress information. I am going to add some debug output to the NSWindow autoupdate code to see, whether this gets called. Most likely this isn't the case, meaning we have a problem with the runtime loop. Maybe we need to add the autoupdate to more event modes or there is an issue with having two run loops. Some more investigation is needed.
I too verified that the DO code works and that the updates are flowing into the main thread.
Thank you - let us know. Riccardo
[Prev in Thread] | Current Thread | [Next in Thread] |