ak5745
asked on
Memory Address of Value Changes
Experts,
I have a C# program (program “A”) that monitors a value generated by a third-party program (program “B”). I do this through reading B’s memory address where the value is located.
Everything works great until I close and reopen B – the value I need is now located elsewhere. From my searching online, I assume this can be solved through the use of offsets, but am unsure. If it’s an offset I need, any advice on finding said offset?
Basically, I’d like my program to always have access to B’s value no matter where in B’s memory it’s stored. Is this Possible?
Thanks.
I have a C# program (program “A”) that monitors a value generated by a third-party program (program “B”). I do this through reading B’s memory address where the value is located.
Everything works great until I close and reopen B – the value I need is now located elsewhere. From my searching online, I assume this can be solved through the use of offsets, but am unsure. If it’s an offset I need, any advice on finding said offset?
Basically, I’d like my program to always have access to B’s value no matter where in B’s memory it’s stored. Is this Possible?
Thanks.
How are you able to find the memory address of the value in the first place? Would not be a matter of identifying that Program "B" restarted and rerun Program "A" initialization code?
ASKER
I use either TSearch or Cheat Engine (both Memory Scanners) to find the value I'm looking for. For example, if B is displaying a value of, say, 10.5 (always a double), I'll search B's memory for 10.5. Then when I close and reopen B, 10.5 is located elsewhere in memory. I could just search again, but that gets old. That answer your question?
Know of any way to always be able to find that dynamic address?
Know of any way to always be able to find that dynamic address?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.