|
|
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » howto best Ctrl Refresh handling w/ MT & very frequent refreshes
Re: howto best Ctrl Refresh handling w/ MT & very frequent refreshes [message #27038 is a reply to message #27035] |
Tue, 22 June 2010 15:36   |
Sender Ghost
Messages: 301 Registered: November 2008
|
Senior Member |
|
|
kohait00 wrote on Tue, 22 June 2010 11:24 |
thanks for the example.
|
tojocky wrote on Tue, 22 June 2010 13:05 |
Nice solution!
|
Thanks. Main credits to Jan.
kohait00 wrote on Tue, 22 June 2010 11:24 |
additionally, the threads passing the refresh work over to the MainThread (using ICall interface etc.) are beeing slept for that time. -> main thread invokes Refresh just too often, because the Updates (that trigger the Refresh) are independant.
|
Seems, there exists some race condition to access Handle of Device Context (HDC), at least on Windows operating system.
kohait00 wrote on Tue, 22 June 2010 11:24 |
Refresh time does not need to be faster than 200 ms.
|
In particular example, refresh (update) rate can be set to 0 ms (or by using PostCallback).
[Updated on: Tue, 22 June 2010 16:12] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 28 13:42:05 CEST 2025
Total time taken to generate the page: 0.01279 seconds
|
|
|