Solved How can I keep my program with injected DLL from crashing on blank pointers?

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Lunoz

Newbie
Full Member
Jun 18, 2015
18
102
0
I noticed I can get my program to do much of what I want by writing to the multi level pointer addresses, but I noticed anytime I try to read or write a pointer address that is blank (??? in cheat engine), then my game crashes. It is inevitable for me to encounter these since the pointers change periodically. The pointers will often change when new parts of the map are loaded, and any attempt to read or write those pointers in their temporary ??? state results in a crash.

How can I prevent this?
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,074
78,998
2,371
If the address in cheat engine displays ???? That means it is outside of the address space usually and will result in a access violation. If your pointer points to ????? Than you need to find a more reliable pointer. If you absolutely.must use those pointers you cannot read them when they point to ?????. If they point to ???? During map change you need to stop reading that address during map change so find another variable that signifies a map change. Also read process memory returns a true or false, you can use it on the pointer to discover if it is ????, if it returns false don't use write process memeory on it
 

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
Well as I said. VirtualQuery.

Or just use ReadProcessMemory.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods