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. a problem of access violation

a problem of access violation

Scheduled Pinned Locked Moved C / C++ / MFC
helpperformance
2 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.
  • G Offline
    G Offline
    Gerald Mercet
    wrote on last edited by
    #1

    Hello everybody, In a new application, which a dialog box application i have a message error which appears and which tell me: " Unhandld exception in Fractal_v1_0.exe(MSVCRTD.DLL):0xC0000005:Access Violation" (Fractal_v1_0 is the name of my project!) So, i meet often the problem "Access Violation" caused by mistake in memory allocation for different pointers, but here i don't understand! so if someone could help me! thanks in advance for your answers gerald

    A 1 Reply Last reply
    0
    • G Gerald Mercet

      Hello everybody, In a new application, which a dialog box application i have a message error which appears and which tell me: " Unhandld exception in Fractal_v1_0.exe(MSVCRTD.DLL):0xC0000005:Access Violation" (Fractal_v1_0 is the name of my project!) So, i meet often the problem "Access Violation" caused by mistake in memory allocation for different pointers, but here i don't understand! so if someone could help me! thanks in advance for your answers gerald

      A Offline
      A Offline
      Andreas Saurwein
      wrote on last edited by
      #2

      Please, build a debug version and run it under the debugger. Since it faults in the runtime library, it should be obvious why it fails when run in the debugger. Common reasons for access violations are str...() functions with null pointers or invalid strings (source or target, length wrong), memcpy/memmove with invalid source or target locations. Also overwrites of allocated memory or stack may cause this error.

      int x=1, y=5;
      x^=y^=x^=y; // whats the content of x and y now?
      ClickHereForHelp();

      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