Hello,
I am executing one small task of drawing on a picture control inside a
thread function.
The drawing takes approximately of around 630 milli seconds to complete the
whole task.
I have placed three picture controls and I am starting 3 threads using
CreateThread API.
Also I have given a sleep inside Threadfunction of 1000 milli sec.
When I execute this (start thread) I can only see that, the first 2 picture
controls get updated and 3 rd
picture control is not getting updated (remains in state of original
position without graph moving).
But when I stop the threads then suddenly the third 3 rd picture control
also gets updated to exactly to the same position of the 1 and 2 nd
controls.
Why is this happening like this, is there a solution to over come this
problem?
should I avoid giving sleep of 1000 milli sec inside thread?
Thanks for reply
Deepak