Page 1 of 1

TBackgroundWorker visual results

PostPosted: December 6th, 2008, 7:04 pm
by cozturk
I heard BackgroundWorker but I didn't check what is it.
( I thought this component is image related component :D )


A few minute ago , I see this is excellent threading component ! . Thank you Kambiz ! =D>

And I have small question:
For demo application, Form Borderstyle changed to bsSingle.
While pressing maximize icon, BackgroundWorker( and its thread) works in background I'm sure. I have checked by Process Explorer . Thread continued, and finished normally.

Unfortunatelly thread results cannot be shown while holding maximize icon.
I want to use this component for hardware related applications. Any brute force methot available to show thread results ?
maximize.jpg
maximize.jpg (6.78 KiB) Viewed 715 times

Re: TBackgroundWorker visual results

PostPosted: December 6th, 2008, 9:25 pm
by Kambiz
In Windows, any reaction with a window must be done by the thread who has created the window. Therefore in Delphi only the main VCL thread can update the visuals.

As the result, when the main VCL thread is busy with something like resizing the form, it does not update the window. As I know, there is no workaround for this limitation.