Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


some questions regarding CE and c# writing memory

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
gilles
How do I cheat?
Reputation: 0

Joined: 01 Nov 2014
Posts: 2

PostPosted: Sat Nov 01, 2014 4:20 pm    Post subject: some questions regarding CE and c# writing memory Reply with quote

Hello,

i have a problem writing to memory.

let me explain :

i have a signature and an offset and i want to write 4 bytes.

pasting the address from cheat engine work very good.

i'm using c# to code.
but writing to memory make the program close.

WriteMemory function returns true and reports 4 bytes written but i can tell from CE Memory View that only the first byte has been written.

i want to know what happend.
i have a lot of questions :

- maybe program don't like concurrent access
do i need to "lock/claim" memory before writing ? and how ?

- maybe i'm in a "protected memory zone"
from memory regions tool, my address belongs to :
Allocation Protect : Execute+Write Copy
State : Commit
Protect : Read+Write
Type : Image
do i need to do special thing before writing ?

- in CE source code where is the code that implement copy/paste functions ?


another strange things : my code work for 0x00000000
if i write 0x00000000 (from code, not from CE), program reflect this without closing.

any help or discussion is welcome, it's the first time i'm trying to write memory.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Sat Nov 01, 2014 5:54 pm    Post subject: Reply with quote

You will need to post the code you are having issues with or there is not much anyone can do to help you.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
gilles
How do I cheat?
Reputation: 0

Joined: 01 Nov 2014
Posts: 2

PostPosted: Sat Nov 01, 2014 7:10 pm    Post subject: Reply with quote

nevermind, i had an error in my code
thanks for your response, Atom0s
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites