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. Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Scheduled Pinned Locked Moved C#
helpperformance
4 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
    Shpendh
    wrote on last edited by
    #1

    I have this problem when a form is going to show this form... frm.ShowDialog(); //here ocured the error help pls.

    spaps

    P 1 Reply Last reply
    0
    • S Shpendh

      I have this problem when a form is going to show this form... frm.ShowDialog(); //here ocured the error help pls.

      spaps

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Without knowing what this form is doing, there's not a lot to go on. Take a look at the full stack trace to try and figure out exactly what's screwed up.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      S 1 Reply Last reply
      0
      • P Pete OHanlon

        Without knowing what this form is doing, there's not a lot to go on. Take a look at the full stack trace to try and figure out exactly what's screwed up.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        S Offline
        S Offline
        Shpendh
        wrote on last edited by
        #3

        the form getting some data from db, but all the things in the constructor is going well no prob, only when it goes to the ShowDialog(). it get me this error.. in the CALL STACK is this: ......Main() Line 225 + 0x1a bytes in the output: A first chance exception of type 'System.AccessViolationException' occurred in System.Windows.Forms.dll

        spaps

        L 1 Reply Last reply
        0
        • S Shpendh

          the form getting some data from db, but all the things in the constructor is going well no prob, only when it goes to the ShowDialog(). it get me this error.. in the CALL STACK is this: ......Main() Line 225 + 0x1a bytes in the output: A first chance exception of type 'System.AccessViolationException' occurred in System.Windows.Forms.dll

          spaps

          L Offline
          L Offline
          lisan_al_ghaib
          wrote on last edited by
          #4

          Did you check in frm (the form you want to show) Load event or in its Constructor?

          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