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 


VEH Debugger bug?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
MErtHRMKsE
Newbie cheater
Reputation: 0

Joined: 02 Jul 2012
Posts: 21

PostPosted: Sat Jul 26, 2014 10:09 am    Post subject: VEH Debugger bug? Reply with quote

I can't debug threads I created with the VEH debugger ( int3 instructions ). It works fine with the Windows debugger, though
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25840
Location: The netherlands

PostPosted: Sat Jul 26, 2014 10:53 am    Post subject: Reply with quote

veh debug doesn't currently support instant thread creation following. Only polling (which is the only option you can choose)
Normally this is no issue as most game mechanics are done from a thread that isn't constantly being created/destroyed, but in your case (creating a new thread) it is an issue.

If it's important to do this, then add a sleep for a few seconds at the entry so the thread poller has time to detect it and add it to the list of threads it expects

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
MErtHRMKsE
Newbie cheater
Reputation: 0

Joined: 02 Jul 2012
Posts: 21

PostPosted: Sat Jul 26, 2014 2:57 pm    Post subject: Reply with quote

Quick question, is it possible that the CreateThread function in autoassembly might fail? I have this function that I use CreateThread on, but sometimes, very rarely, the program crashes. I know it is very rarely, like 1 time in 15, but it still happens. I set a breakpoint at the start of my function and ran it until I crashed. I was able to go to the "ret" of my function and then I pressed F9 and it crashed, so I don't think my code is wrong?

EDIT : Just so you know, this is completely off-topic. This doesn't have to do with anything about VEH debugger. I actually used the Windows debugger when I did this.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25840
Location: The netherlands

PostPosted: Sat Jul 26, 2014 3:04 pm    Post subject: Reply with quote

It depends on your code and what it does.
If you call code of the game it could be a multithreading issue. (E.g. the main game thread suddenly reads deallocated memory because function a rellocated a memoryblock while function b was using it))

Also check the stack. Some calling conventions don't clean up the stack in case of errors. So check if the final ret returns you to the terminatethread exit call

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping


Last edited by Dark Byte on Sat Jul 26, 2014 3:06 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
MErtHRMKsE
Newbie cheater
Reputation: 0

Joined: 02 Jul 2012
Posts: 21

PostPosted: Sat Jul 26, 2014 3:06 pm    Post subject: Reply with quote

Yeah, the return address at the end was the good one. It might be the "multi-threading" error you're talking about, I'm going to look into it
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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