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 

Cheat Engine Forum Index
PostGo back to topic
Dark Byte
Site Admin
Reputation: 380
Joined: 09 May 2003
Posts: 22740
Location: The netherlands

PostPosted: Wed Oct 27, 2010 12:02 am    Post subject:

comment out the line "Form1->AccessedAddressesView->Lines->Add" and see if it crashes as often.
VCL doesn't take kindly to multiple threads calling gui code at the same time(And that includes the refresh method call that occurs after and add which then happens from another thread that isn't the normal display thread)
use synchronize if possible, but I never had success with synchronize in dll's, I usually resort to postmessage if it's not the main thread

if(ExceptionInfo->ContextRecord->Dr0 == (DWORD)Bp->address || ExceptionInfo->ContextRecord->Dr1 == (DWORD)Bp->address || ExceptionInfo->ContextRecord->Dr2 == (DWORD)Bp->address || ExceptionInfo->ContextRecord->Dr3 == (DWORD)Bp->address)

Once you have set a breakpoint, this will return true 100% of the time, even if it's not caused by your breakpoint (It's better to check the bits in dr6 to see what the cause is)


if((ExceptionInfo->ContextRecord->Dr7 & (1 << (e * 2))) == 1)

this looks like a logic error to me, try != 0 instead (also, setting dr6 to 0 isn't really needed, but if you do set it to something, set it to 0xffff0ff0 )

same for

if((ExceptionInfo->ContextRecord->Dr7 & (1 << (Bp->dbgreg * 2))) == 1)

use != 0 instead of ==1
lets do the calculation:
dbreg is 1 or higher

d & (1 << (dr*2))=
d & (1 << 2)=
d & 4 =
0xffffffff & 4 = 4
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
Post reviews:   Approve 1
Author Review
Review: Approve
Post reference:
ReviewPosted: Wed Oct 27, 2010 4:48 am

Check out the brain on DB!
Back to top
View user's profile Send private message
Cheat Engine Forum Index

Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites