Updating the UI while converting databases to V5

jda jda at his.com
Wed Mar 27 16:00:01 CDT 2013


>>> 
>>> Do you mean that only main thread of app can do that in RB?
>>> 
>>> What can do other threads then?
>>> 
>>> You cannot have N windows, each working with own thread ???
>>> Not cool somehow
>>> 
>> 
>> No, you can't. You can have as many threads working as you like, but they
>> can't touch properties of the an UI elements (updating windows, manipulating
>> lists, etc.). Only the main thread can do that.
> 
> Ok so again:
> 
> Main Thread do
> 
>   Show dialog  Do Something and Infinit Progress Bar
>   Start thread_2 
> 
>    WAIT while thread_2  finish and meanwhile progress
>    bar is updated by this main thread
> 
> 
> Trhead_2 do
>   some long  Valentina task
> 
> 

Except that in my experience, the main thread pauses while Valentina does it's thing. So the progressbar never gets updated until Valentina is finished. I haven't looked at this in a while, but Beatrix has and I'm sure will comment.

Jon


More information about the Valentina mailing list