monday
Expert
- Joined
- Jun 23, 2014
- Messages
- 1,127
- Solutions
- 1
- Reaction score
- 158
Hi, do you know some specific practical examples where reading/writing to some memory region (storing some value like ammo/HP/armor) in GTA-SA / SAMP would result in a crash if the memory protection wouldn't be previously set to "PAGE_EXECUTE_READWRITE" ?
Also, let's assume that there's some mod that is overwritting some memory (e.g. ammo/HP/armor), not using "VirtualProtect", and seemingly working well. Is there a risk, that in some circumstances the game itself will suddenly change the protection of that memory region (to which our mod writes to), resulting in a crash?
Or if the mod works properly once (without using "VirtualProtect") then it will never crash due to lack of "VirtualProtect" in future?
Also, let's assume that there's some mod that is overwritting some memory (e.g. ammo/HP/armor), not using "VirtualProtect", and seemingly working well. Is there a risk, that in some circumstances the game itself will suddenly change the protection of that memory region (to which our mod writes to), resulting in a crash?
Or if the mod works properly once (without using "VirtualProtect") then it will never crash due to lack of "VirtualProtect" in future?