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 / C++ / MFC
  4. Win32 API

Win32 API

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelp
4 Posts 4 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.
  • K Offline
    K Offline
    Kuroro Rucilful
    wrote on last edited by
    #1

    hello everyone, I've written a simple application that has a class(Class_A) called by WinMain's Controller class under function "Command(int cmd)" specifically IDM_RUN_PROG. The code compiles but it throws an "Access Violation" error when run. Also debugging it produced this message "DAMAGE: after Normal block(#50) at 0x008651C0" I've declared a new pointer of Class_A within the Command(int cmd) function under Controller class.:confused: "You have to be in a situation where you see just how fast things fail to make you take it seriously, I guess. " Bruce Eckel

    N K H 3 Replies Last reply
    0
    • K Kuroro Rucilful

      hello everyone, I've written a simple application that has a class(Class_A) called by WinMain's Controller class under function "Command(int cmd)" specifically IDM_RUN_PROG. The code compiles but it throws an "Access Violation" error when run. Also debugging it produced this message "DAMAGE: after Normal block(#50) at 0x008651C0" I've declared a new pointer of Class_A within the Command(int cmd) function under Controller class.:confused: "You have to be in a situation where you see just how fast things fail to make you take it seriously, I guess. " Bruce Eckel

      N Offline
      N Offline
      NiceNaidu fo
      wrote on last edited by
      #2

      Can you post the code,where you u r getting the error. Appu.. "If you judge people, you have no time to love them."

      1 Reply Last reply
      0
      • K Kuroro Rucilful

        hello everyone, I've written a simple application that has a class(Class_A) called by WinMain's Controller class under function "Command(int cmd)" specifically IDM_RUN_PROG. The code compiles but it throws an "Access Violation" error when run. Also debugging it produced this message "DAMAGE: after Normal block(#50) at 0x008651C0" I've declared a new pointer of Class_A within the Command(int cmd) function under Controller class.:confused: "You have to be in a situation where you see just how fast things fail to make you take it seriously, I guess. " Bruce Eckel

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        A typical pointer problem. In your programm you are using a pointer with a bad target or are writing after end. ie: char sz[5]; sz[7] = 0;//DAMAGE !!!! Do single line debugging an check when there is access to the damaged memory. Greetings from Germany

        1 Reply Last reply
        0
        • K Kuroro Rucilful

          hello everyone, I've written a simple application that has a class(Class_A) called by WinMain's Controller class under function "Command(int cmd)" specifically IDM_RUN_PROG. The code compiles but it throws an "Access Violation" error when run. Also debugging it produced this message "DAMAGE: after Normal block(#50) at 0x008651C0" I've declared a new pointer of Class_A within the Command(int cmd) function under Controller class.:confused: "You have to be in a situation where you see just how fast things fail to make you take it seriously, I guess. " Bruce Eckel

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Can you be more specific_**


          **_

          whitesky


          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