First of all, If you are using .Net 2.0 Better use 3 BackgroundWorker components than using Threads (More Efficient, Response, Structural and Recomended way).
Second, Without seeing all your code no one can comment on this code,
- You are Creating Thread in PutImagePictureBox1, It has scope limited to that function only. I dont know how your code is running like this.
- You have not metioned the Code where you are Calling SafeImageLoad1() and ImageLoad1.
May be the problem is in other code!
Plus if you still want to use the Threads instead of BackgroundWorker then atleast declare instances of Threads at class level so it can have broader scope.
Best Regards,
|