windows service not working for everyone.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #31
    Originally posted by ayush patel
    after a lot of work i found a work around not a solution though.i used Thread.Sleep(60 00); and also i placed FileWatch_Creat ed code in if loop saying if any file exists then read it else go to FileWatch_Creat ed again.

    because as i increase the time in thread.sleep the service was getting delayed. so now till the service finds a file it will remain in the if else loop. it wont be a infinite loop since it is going to find a file eventually. there is a creation of file that is why it has entered into FileWatch_Creat ed event.

    i dont think this is the best method but it worked.
    Thanks to all who helped.

    Ayush
    good work finally you cracked it....

    Comment

    Working...