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. C#.net error: Attempt to read or write protected memory or often this is the indication that other memory is currupt

C#.net error: Attempt to read or write protected memory or often this is the indication that other memory is currupt

Scheduled Pinned Locked Moved C#
csharphelpvisual-studiodata-structuresperformance
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.
  • R Offline
    R Offline
    Rao Rafique
    wrote on last edited by
    #1

    Hi Fellows: I am facing an error of access voilation while running a piece of code with Unsafe Context...I am developing steganographic application.And I want to embedd DataImage into Cover image using LSB method with the help of Lockbits() and UnLockBits () methos.. But when I compile the code it is compiled & Build succesfully.But at run time the app. frozes and with the following error message for the statement. byte bb=ptr1[0] //where ptr1 is byte type pointer that points to Scan0 ,i.e 1st byte of locked image array. Error :AccessVoilationUnhandelled exception Plateform :Visual C# Express edition VS.Net 2.0,Win XP Error Message: AcessVoilation: attempt to read or write protected memory.This is the oftenindication that other memeory is currupt. also I am thanfull to Chorrina John...who write very helpful articles on Steganography...I request If she is there please help & Supervise me in my project. Waiting for ur good response... Thanks I am getting B.S. degree in Computer Science.And want to enhance career in Software development.

    G 1 Reply Last reply
    0
    • R Rao Rafique

      Hi Fellows: I am facing an error of access voilation while running a piece of code with Unsafe Context...I am developing steganographic application.And I want to embedd DataImage into Cover image using LSB method with the help of Lockbits() and UnLockBits () methos.. But when I compile the code it is compiled & Build succesfully.But at run time the app. frozes and with the following error message for the statement. byte bb=ptr1[0] //where ptr1 is byte type pointer that points to Scan0 ,i.e 1st byte of locked image array. Error :AccessVoilationUnhandelled exception Plateform :Visual C# Express edition VS.Net 2.0,Win XP Error Message: AcessVoilation: attempt to read or write protected memory.This is the oftenindication that other memeory is currupt. also I am thanfull to Chorrina John...who write very helpful articles on Steganography...I request If she is there please help & Supervise me in my project. Waiting for ur good response... Thanks I am getting B.S. degree in Computer Science.And want to enhance career in Software development.

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Obviously ptr1 is not at all a pointer to a part of the image, but points somewhere else. If you can show a bit more of the code, it might be possible to say anything more about it.

      --- single minded; short sighted; long gone;

      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