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. Physical Memory reading

Physical Memory reading

Scheduled Pinned Locked Moved C / C++ / MFC
performancetutorialquestion
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.
  • M Offline
    M Offline
    Muhammad Ahmed 0
    wrote on last edited by
    #1

    Hello Can any please tell me if it is possible for an application to read memory outside the memory area allocated to my program..... for example if i want to read first 1000 bytes of memory is it possible? ahmed

    D D B 3 Replies Last reply
    0
    • M Muhammad Ahmed 0

      Hello Can any please tell me if it is possible for an application to read memory outside the memory area allocated to my program..... for example if i want to read first 1000 bytes of memory is it possible? ahmed

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      As far as I know, when a program attempts to read memory not belonging to it, a crash ensues.

      1 Reply Last reply
      0
      • M Muhammad Ahmed 0

        Hello Can any please tell me if it is possible for an application to read memory outside the memory area allocated to my program..... for example if i want to read first 1000 bytes of memory is it possible? ahmed

        D Offline
        D Offline
        Daniel Turini
        wrote on last edited by
        #3

        Only if you are coding a driver. My latest article: GBVB - Converting VB.NET code to C#

        1 Reply Last reply
        0
        • M Muhammad Ahmed 0

          Hello Can any please tell me if it is possible for an application to read memory outside the memory area allocated to my program..... for example if i want to read first 1000 bytes of memory is it possible? ahmed

          B Offline
          B Offline
          Baris Kurtlutepe
          wrote on last edited by
          #4

          Muhammad Ahmed wrote: to read memory outside the memory area allocated to my program..... There really isn't a physical memory "allocated" to your program, every application has its own "virtual memory" in the operating system environment and some parts of this space may be in the physical memory while some may be on the pagefile. I think you should first read about the topic "virtual memory" before digging into kernel mode drivers or dos etc.

          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