Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Meaning of errors logged by FileSystemWatcher.Error

Meaning of errors logged by FileSystemWatcher.Error

Scheduled Pinned Locked Moved C#
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    srikrishnathanthri
    wrote on last edited by
    #1

    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.ErrorEventArgs

    My question is what is the meaning of these errors ? Why I am getting these errors ? Please help me.

    L 1 Reply Last reply
    0
    • S srikrishnathanthri

      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.ErrorEventArgs

      My question is what is the meaning of these errors ? Why I am getting these errors ? Please help me.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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)

      S 1 Reply Last reply
      0
      • L Lost User

        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)

        S Offline
        S Offline
        srikrishnathanthri
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • S srikrishnathanthri

          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.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups