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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. First Chance exception

First Chance exception

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
6 Posts 5 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.
  • B Offline
    B Offline
    boon kian
    wrote on last edited by
    #1

    Hi, Anyone noe what error is this and how to remedy it: First-chance exception : 0xC0000005: Access Violation. I cannot seems to find it in the msdn library

    E C L M 4 Replies Last reply
    0
    • B boon kian

      Hi, Anyone noe what error is this and how to remedy it: First-chance exception : 0xC0000005: Access Violation. I cannot seems to find it in the msdn library

      E Offline
      E Offline
      Emilio Guijarro
      wrote on last edited by
      #2

      I haven´t seen documenation about it, but it always fires on my screen when my code reads/writes to a unassigned memory block. This happens very usually when working with pointers and new/delete operators. Check all the rountines using dynamic memory allocation before the point that breaks the execution of your application. "nobody knows it, but you´ve got a secret smile, and you use it only for me"

      1 Reply Last reply
      0
      • B boon kian

        Hi, Anyone noe what error is this and how to remedy it: First-chance exception : 0xC0000005: Access Violation. I cannot seems to find it in the msdn library

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        it means your process does not have access to the memory it was trying to use. like the previous poster noted, this usually means you have a bad pointer. check all your pointers - make sure they have valid values. -c


        A man is like a rusty wheel on a rusty cart, He sings his song as he rattles along and then he falls apart. -- Richard Thompson

        image effects!

        B 1 Reply Last reply
        0
        • C Chris Losinger

          it means your process does not have access to the memory it was trying to use. like the previous poster noted, this usually means you have a bad pointer. check all your pointers - make sure they have valid values. -c


          A man is like a rusty wheel on a rusty cart, He sings his song as he rattles along and then he falls apart. -- Richard Thompson

          image effects!

          B Offline
          B Offline
          boon kian
          wrote on last edited by
          #4

          Hi all, Thanx a lot for the help. I think i try to paint u all a better pic: In my prog, I have 2 arrays. The size of the array depend on the size of my image. One array use a "new" operator to declare and the other one is using the CArray. my program uses extensive recusive function to process the image. When i try my program on a small image (eg ard 100x100 pixel) it works perfectly fine. When i try it on large images the first-chance exception occur. when the error occur, there is a lot of the recusive function being called. And the error occur at the begining of the function (no code is there). Can anyone please enlighten me what has happened and any possible solutions ?? Thanx you ! bk

          1 Reply Last reply
          0
          • B boon kian

            Hi, Anyone noe what error is this and how to remedy it: First-chance exception : 0xC0000005: Access Violation. I cannot seems to find it in the msdn library

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

            Hi Probably you are trying to access memory that is read only and it might be caused by using pointers in an unproper way (maybe you haven't initialized something or you are trying to access memory that you've just released). Try to use call stack to find out where have you made that mistake. Greetings

            1 Reply Last reply
            0
            • B boon kian

              Hi, Anyone noe what error is this and how to remedy it: First-chance exception : 0xC0000005: Access Violation. I cannot seems to find it in the msdn library

              M Offline
              M Offline
              Michael Dunn
              wrote on last edited by
              #6

              0xC0000005 is a GPF. You read or wrote memory you didn't have access to. Usually this is a bad, uninitialized, or dangling pointer. --Mike-- Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm

              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