Click to See Complete Forum and Search --> : Is there a way to pause a program without it hanging?


2MuchRiceMakesMeSick
December 12th, 2006, 10:41 AM
Is there a way to make the program 'sleep' without it hanging?

I am using Asynchronous callbacks (around 10 going at one time) but I need to pause and wait after each one. Right now I am using Thread->Sleep(100) but that puts the entire program to sleep.

Thanks in advance.

ahoodin
December 12th, 2006, 11:20 AM
That is because your sleeping the main thread.

Create some new threads, and call sleep along with the callbacks, from within them.

HTH,