Link to home
Start Free TrialLog in
Avatar of lsberman
lsberman

asked on

How do I PostMessage (PostThreadMessage?!?) from a worker thread to a TComponent descendent?

Hi!  I want to create a custom component (derived from TComponent) that spawns a worker thread which uses PostMessage or PostThreadMessage to asynchronously report progress in a non-blocking manner back to the custom component.  I can't use synchronization as I need the worker thread to run at speed.

I've read through dozens of "answers" on the subject on this board but all of the answers are incomplete or fragmentary.  I'd appreciate a COMPLETE source-code example since there's obviously something subtle I'm missing.  Thanks....
Avatar of BlackTigerX
BlackTigerX

do you have some code and are getting stuck somewhere?

you will get better responses if you ask specific questions on something that you don't know how to implement or is not working as you would expect, rather than asking for someone to create the whole thing for you

if you have some code post it here and we can go from there...
ASKER CERTIFIED SOLUTION
Avatar of Wim ten Brink
Wim ten Brink
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial