TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
gdont
NA
7
0
Stop program execution for a specified time
Jan 8 2005 3:46 PM
How can I suspend a program's execution for a specified time? In particular, I want to make an event's code start running a specified time after the event fires. I think that it could help me solve the problem of firing the FileSystemWatcher.Created event which fires when a new file is being put into a "watched" folder. The problem arises when the file is big. Then the event fires before the creation of the new file is completed and the manipulation in the event handler procedure fails to execute. That is why I thought I could put an instuction in the event handler to "wait for" (i.e. an hour) but I do not remember how to do it. (any other idea to the problem will be welcomed) Thank you
Reply
Answers (
4
)
Random numbers and loops
Invalid Characters