Hello, Thanks for the reply,
Actually I tried the way you suggested. But what is going on is, I need to update some user interface components on the From, at the end of the calculation. Now here are some problems I faced:
1.) If my timer is throwing new thread every 3-4 seconds, and my calculation is not done yet when the first thread was created, and now the second one is out there and they both done about at the same time, then what happens is they clash and I get the error that the resources I am trying to use are being used by another thread.
2.) Second, I want to update my screen in sequence, which means I want to update my user interface components only after the call to the calculations is done, and afterward I want to start the next call to the calculations.
I think timers have the capability to do all this and run as a separate thread, but I don?t know how. Hope this helps you to understand the problem. Any ideas or suggestions are appreciated. Thanks again for the reply.