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. DEBUG:0xC0000005: Access Violation

DEBUG:0xC0000005: Access Violation

Scheduled Pinned Locked Moved C#
visual-studiohelpcsharpdebugging
7 Posts 3 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
    sduhd
    wrote on last edited by
    #1

    When I debug my C# program in vs2005, I always met the problem of first-chance exception:0xC0000005: Access Violation. The problem occured when vs loaded the dlls. If I run the exe outside the IDE, it's OK. I doubt that an anti-virus software I installed yesterday caused the problem. Before the antivirus installed, everything was OK. Please help.

    V L 2 Replies Last reply
    0
    • S sduhd

      When I debug my C# program in vs2005, I always met the problem of first-chance exception:0xC0000005: Access Violation. The problem occured when vs loaded the dlls. If I run the exe outside the IDE, it's OK. I doubt that an anti-virus software I installed yesterday caused the problem. Before the antivirus installed, everything was OK. Please help.

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      Check this out http://www.updatexp.com/0xC0000005.html[^]

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      S 1 Reply Last reply
      0
      • S sduhd

        When I debug my C# program in vs2005, I always met the problem of first-chance exception:0xC0000005: Access Violation. The problem occured when vs loaded the dlls. If I run the exe outside the IDE, it's OK. I doubt that an anti-virus software I installed yesterday caused the problem. Before the antivirus installed, everything was OK. Please help.

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        first-chance exceptions are exceptions that have been caught and dealt with. No need to worry about it :) BTW: that exception code is the same as NullReferenceException :)

        xacc.ide
        The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

        S 1 Reply Last reply
        0
        • L leppie

          first-chance exceptions are exceptions that have been caught and dealt with. No need to worry about it :) BTW: that exception code is the same as NullReferenceException :)

          xacc.ide
          The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

          S Offline
          S Offline
          sduhd
          wrote on last edited by
          #4

          Thanks. I would not worry about it at all if the IDE ignored the problem and let me debug my program.

          L 1 Reply Last reply
          0
          • S sduhd

            Thanks. I would not worry about it at all if the IDE ignored the problem and let me debug my program.

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            Your settings just might be wrong, I have fallen in a similar trap if I havent reset the settings for exceptions. Go to Debug, Exception, click 'Reset All'. Also make sure you dont have native debugging turned on, if you dont need it. Try it now :)

            xacc.ide
            The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

            S 1 Reply Last reply
            0
            • V Vasudevan Deepak Kumar

              Check this out http://www.updatexp.com/0xC0000005.html[^]

              Vasudevan Deepak Kumar Personal Homepage Tech Gossips

              S Offline
              S Offline
              sduhd
              wrote on last edited by
              #6

              Thanks. But I cannot open that page. :(

              1 Reply Last reply
              0
              • L leppie

                Your settings just might be wrong, I have fallen in a similar trap if I havent reset the settings for exceptions. Go to Debug, Exception, click 'Reset All'. Also make sure you dont have native debugging turned on, if you dont need it. Try it now :)

                xacc.ide
                The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

                S Offline
                S Offline
                sduhd
                wrote on last edited by
                #7

                Thanks. I unchecked the "debug unsafe code" and reset exception settings, then it's OK.:laugh::laugh::laugh:

                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