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. Visual Basic
  4. reading memory from proccess problem! [modified]

reading memory from proccess problem! [modified]

Scheduled Pinned Locked Moved Visual Basic
csharpcomgame-devtesting
4 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.
  • T Offline
    T Offline
    TDSp
    wrote on last edited by
    #1

    hi, First of all a screenshot http://img131.imageshack.us/img131/5797/problemiovg8.png[^] i am using the DLL from this artical (http://www.codeproject.com/csharp/minememoryreader.asp[^]) To read memory from a rollercoaster game, to get lateral and acceleration Gs, these values are in the form of a double. in a memory scanner i have froze one of the values to "0.1" for testing purposes but when i read the memory address from VB.NET it reads it as "154153153153153153185630003217311321963" !!! i am very confused about this, is there anyone here that has a clue? also, does anyone know of other DLLs that can do the same job?

    Private Sub Timer1\_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        RichTextBox1.Clear()
    

    ' Choose process
    Dim myProcesses As System.Diagnostics.Process() =
    System.Diagnostics.Process.GetProcessesByName("NoLimitsSimulator")

    'Load it to memory reader
    mem.ReadProcess = myProcesses(0)

    'open it
    mem.OpenProcess()

    'decs
    Dim out As Int32
    Dim current
    Dim memory() As Byte
    'new pointer
    Dim loc As IntPtr
    loc = "5581752"
    'Read The Memory
    memory = mem.ReadProcessMemory(loc, 16, out)

    'Return Value
    'these al like this because i was experimenting!
    RichTextBox1.Text = RichTextBox1.Text & memory(0)
    RichTextBox1.Text = RichTextBox1.Text & memory(1)
    RichTextBox1.Text = RichTextBox1.Text & memory(2)
    RichTextBox1.Text = RichTextBox1.Text & memory(3)
    RichTextBox1.Text = RichTextBox1.Text & memory(4)
    RichTextBox1.Text = RichTextBox1.Text & memory(5)
    RichTextBox1.Text = RichTextBox1.Text & memory(6)
    RichTextBox1.Text = RichTextBox1.Text & memory(7)
    RichTextBox1.Text = RichTextBox1.Text & memory(8)
    RichTextBox1.Text = RichTextBox1.Text & memory(9)
    RichTextBox1.Text = RichTextBox1.Text & memory(10)
    RichTextBox1.Text = RichTextBox1.Text & memory(11)
    RichTextBox1.Text = RichTextBox1.Text & memory(12)
    RichTextBox1.Text = RichTextBox1.Text & memory(13)

    D 1 Reply Last reply
    0
    • T TDSp

      hi, First of all a screenshot http://img131.imageshack.us/img131/5797/problemiovg8.png[^] i am using the DLL from this artical (http://www.codeproject.com/csharp/minememoryreader.asp[^]) To read memory from a rollercoaster game, to get lateral and acceleration Gs, these values are in the form of a double. in a memory scanner i have froze one of the values to "0.1" for testing purposes but when i read the memory address from VB.NET it reads it as "154153153153153153185630003217311321963" !!! i am very confused about this, is there anyone here that has a clue? also, does anyone know of other DLLs that can do the same job?

      Private Sub Timer1\_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
          RichTextBox1.Clear()
      

      ' Choose process
      Dim myProcesses As System.Diagnostics.Process() =
      System.Diagnostics.Process.GetProcessesByName("NoLimitsSimulator")

      'Load it to memory reader
      mem.ReadProcess = myProcesses(0)

      'open it
      mem.OpenProcess()

      'decs
      Dim out As Int32
      Dim current
      Dim memory() As Byte
      'new pointer
      Dim loc As IntPtr
      loc = "5581752"
      'Read The Memory
      memory = mem.ReadProcessMemory(loc, 16, out)

      'Return Value
      'these al like this because i was experimenting!
      RichTextBox1.Text = RichTextBox1.Text & memory(0)
      RichTextBox1.Text = RichTextBox1.Text & memory(1)
      RichTextBox1.Text = RichTextBox1.Text & memory(2)
      RichTextBox1.Text = RichTextBox1.Text & memory(3)
      RichTextBox1.Text = RichTextBox1.Text & memory(4)
      RichTextBox1.Text = RichTextBox1.Text & memory(5)
      RichTextBox1.Text = RichTextBox1.Text & memory(6)
      RichTextBox1.Text = RichTextBox1.Text & memory(7)
      RichTextBox1.Text = RichTextBox1.Text & memory(8)
      RichTextBox1.Text = RichTextBox1.Text & memory(9)
      RichTextBox1.Text = RichTextBox1.Text & memory(10)
      RichTextBox1.Text = RichTextBox1.Text & memory(11)
      RichTextBox1.Text = RichTextBox1.Text & memory(12)
      RichTextBox1.Text = RichTextBox1.Text & memory(13)

      D Offline
      D Offline
      Duncan Edwards Jones
      wrote on last edited by
      #2

      Why the quotes around the number - that makes it a string... loc = "5581752" loc = New IntPtr(5581752)

      '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

      T 1 Reply Last reply
      0
      • D Duncan Edwards Jones

        Why the quotes around the number - that makes it a string... loc = "5581752" loc = New IntPtr(5581752)

        '--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd

        T Offline
        T Offline
        TDSp
        wrote on last edited by
        #3

        I changed it to that and it still does same :(

        Thanks, Terence

        T 1 Reply Last reply
        0
        • T TDSp

          I changed it to that and it still does same :(

          Thanks, Terence

          T Offline
          T Offline
          TDSp
          wrote on last edited by
          #4

          sorry for double post, ok.. it seems to read 4 byte numbers ok (not doubles) but when it goes over 255/256 (dont know wich) it rolls over to 100 o 0100 !! so i dont know what this is doing.. but is it just chucking it out in a different format?

          Thanks, Terence

          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