Meaning of errors logged by FileSystemWatcher.Error
-
Hello, I am using 'FileSystemWatcher.enableraiseevents' to get the events when a directory, or file in a directory changes. I have used FileSystemWatcher.Error to catch the errors. These are the errors logged in my system.
Exception : System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out, Hash code: 28048521, Type: System.IO.ErrorEventArgs, To string: System.IO.ErrorEventArgs
Exception : System.ComponentModel.Win32Exception (0x80004005): The operation completed successfully, Hash code: 1658455, Type: System.IO.ErrorEventArgs, To string: System.IO.ErrorEventArgs
Exception : System.ComponentModel.Win32Exception (0x80004005): Unknown error (0x490062), Hash code: 27762102, Type: System.IO.ErrorEventArgs, To string: System.IO.ErrorEventArgsMy question is what is the meaning of these errors ? Why I am getting these errors ? Please help me.
-
Hello, I am using 'FileSystemWatcher.enableraiseevents' to get the events when a directory, or file in a directory changes. I have used FileSystemWatcher.Error to catch the errors. These are the errors logged in my system.
Exception : System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out, Hash code: 28048521, Type: System.IO.ErrorEventArgs, To string: System.IO.ErrorEventArgs
Exception : System.ComponentModel.Win32Exception (0x80004005): The operation completed successfully, Hash code: 1658455, Type: System.IO.ErrorEventArgs, To string: System.IO.ErrorEventArgs
Exception : System.ComponentModel.Win32Exception (0x80004005): Unknown error (0x490062), Hash code: 27762102, Type: System.IO.ErrorEventArgs, To string: System.IO.ErrorEventArgsMy question is what is the meaning of these errors ? Why I am getting these errors ? Please help me.
srikrishnathanthri wrote:
Please help me.
I'll copy/paste every answer from the same question on SO here, would that help? :) --edit To explain why I'm not so very happy with this question; imagine taking 10 minutes to write a long answer with lots o' detail - just to hear you say "I already know". You could have included a link to your question on SO so that I am not just repeating other answers.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)
-
srikrishnathanthri wrote:
Please help me.
I'll copy/paste every answer from the same question on SO here, would that help? :) --edit To explain why I'm not so very happy with this question; imagine taking 10 minutes to write a long answer with lots o' detail - just to hear you say "I already know". You could have included a link to your question on SO so that I am not just repeating other answers.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)
I have given the complete information of exception which I am getting from Exception.ToString() In this case I cant get errors in debug. It's logged in run time randomly. I am searching at least 30 minutes before posting any questions in the forum.
-
I have given the complete information of exception which I am getting from Exception.ToString() In this case I cant get errors in debug. It's logged in run time randomly. I am searching at least 30 minutes before posting any questions in the forum.
srikrishnathanthri wrote:
In this case I cant get errors in debug. It's logged in run time randomly.
It may be caused by lots of messages from the OS, which aren't there as soon as you halt execution and go to debug. FileSystemWatcher.Error Event (System.IO)[^] The operation timed out, would mean that the OS started an operation but did not get informed of its completion; which in turn could cause the next errors. You might also want to read this[^] thread from SO.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)