Hi All,

I am using extensive Sleep() function in my application coz i want it to halt at certain point of time. But some people told me that Sleep() is machine dependant as my application doesn't show consistant behavior from machine to machine.

Hence i am trying to use SetTimer() OnTimer() functions to achieve the Sleep() functionality but it ain't happening coz whenever i try to do SetTimer() it executes the OnTimer function independantly as a seperate process and control doesn't stop there.

pls help me how can i achieve the Sleep() functionality without actually using
Sleep() function. Is there any other way we can do the same ?

Thanks in advance.


In