N00b Question menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    Splatter's Avatar Private
    Reputation
    1
    Join Date
    Aug 2012
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    N00b Question

    I use C# to write code, and I ran into an issue with Diablo 3 that I though could be solved through memory reading, however I am quite new to memory reading. I decided that the best way to get aquainted with it was to write my own program, then attempt to read the memory of that program.
    So, I wrote a simple program that has a public class sompin, with three members Name, Text, Corn... I then created a list of 100 sompin's each object of type sompin had values of Name+5 random characters, Text+5random characters Corn+5 random characters. Once that was complete, I did a readkey() so that the program would pause execution, then after a key is entered it would print the values of each sompin to ensure that GC and/or optimization would not remove them. (I am not 100% sure how necessary the last part was). (This was a console application)

    I then created a second,Windows Forms, application that used Process.GetAllProcesses() to populate a list box, selecting a process from the list box would show the PrivateMemorySize, the VirtualMemorySize, and the Working Memory Size. Then upon clicking a button it wrote to a file a "Memory dump" of the proces. To do this I used ReadProcessMemory, one byte at a time for a number of bytes equal to each of those sizes(In three seperate runs of the program) (I didn't read it all at once because I got a 299 partial read error attempting that). For each byte read through ReadProcessMemory, I wrote the byte cast as a char to a file (unless i received a partialMemoryError or a null in which case I wrote a Space " ".

    I expected to find 100 instances of Corn\s{5} somewhere in the memory dump. This is not the case, I found only 3 instances of each of that word, only one of them being an actual value of a list item (The last one).

    Does anyone know where I went wrong? Or have any advice as to what is happening?

    N00b Question

Similar Threads

  1. [N00b question] LUA and mangos????
    By jeremy7271 in forum WoW EMU Questions & Requests
    Replies: 9
    Last Post: 07-04-2009, 06:58 AM
  2. N00b Question
    By Emuchild in forum Programming
    Replies: 5
    Last Post: 05-14-2009, 08:50 AM
  3. I admit...these are N00b Questions
    By taurusrow in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 12-23-2008, 09:33 AM
  4. n00b question ( mangos )
    By massanaconda in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 12-02-2008, 12:40 PM
  5. Guide for all n00b Questions
    By Jadaspende in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 08-14-2008, 12:57 AM
All times are GMT -5. The time now is 09:23 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search