Click here to Skip to main content
15,900,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to wait a method in dll while calling the method from application.

Note: I want to wait a method execution for some time in dll..any idea?

other than sleep..
Posted
Comments
Jameel VM 18-Sep-13 5:39am    
why you are not trying Thread.Sleep?

1 solution

Other than sleep, you probably can't - you could loop looking at a Stopwatch, or the DateTime, but all of those (including Thread.Sleep) will block the thread, so a "normal" application which calls your method from the UI will not be updated.

It's a silly idea - an artificial delay in a method? Why would you want that?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900