Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 07:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C++ Detour - Access Violation

Discussion on C++ Detour - Access Violation within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
MaxMilimeter's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 422
Received Thanks: 164
Exclamation C++ Detour - Access Violation

Hallo,
ich versuche zur Zeit ein eigenes Detour mit Hilfe dieser Anleitung zu basteln. Ziel ist es bei jedem Call einer bestimmten Funktion eine Messagebox auszugeben.
Leider klappt das irgendwie nicht wie es soll, denn es tritt immer eine Acces Violation auf nachdem meine Messagebox angezeigt wurde. Meine Vermutung ist, nach Stepping in Olly, dass sich die Registers durch meine Funktion ändern. Das denke ich weil mein Prozess plötzlich in die nt.dll springt wenn "MOV EDX,DWORD PTR DS:[EAX-8]" ausgeführt wird (denn EAX-8 führt ins leere, wieso !?).

Edit:
Hat sich erledigt, pushad und popad waren die Lösung.

Danke im Voraus,
MaxMilimeter
MaxMilimeter is offline  
Old 10/19/2011, 16:20   #2
 
Dr. Coxxy's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 1,206
Received Thanks: 736
grrr. war nach den ersten 3 zeilen schon damit beschäftigt hier unten PUSHAD und POPAD reinzuschreiben und dann kommt da einfach so ein "Edit:"^^
Dr. Coxxy is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[question] memcpy, access violation
10/02/2011 - General Coding - 1 Replies
is it ok to type cast byte buffer by (void*)? DWORD dwAddress = 0x12345678; BYTE bPatch = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }; memcpy( (void*)dwAddress, (void*)bPatch, 7); this piece of my code was working fine till now - it is causing ACCESS VIOLATION and I can't figure out why. edited: nvm, it was all about memory protection.
Detour und Rehook?! oder nur Detour?
09/16/2011 - WarRock - 4 Replies
Hallo EPVP' Ich hätte mal ne kleine Frage an die D3D Coder C++. Ich hab schon meinen eigenen Hack gecoded. Nun woltle ich D3D Funcs adden, hab auch den richtigen code. In-Game geht es jedoch NICHT!. Nun wurde mir von jemanden gesagt ich bräuchte eine Detour.
Help with my error log: NeuzUnique access violation
01/29/2011 - Flyff Private Server - 0 Replies
How can I fix this error? It pops when logging with my char. 2011/ 1/29 11:30:31 Feb 22 2010 05:50:57 1 rCnt=1 NeuzUnique.exe caused an EXCEPTION_ACCESS_VIOLATION in module NeuzUnique.exe at 001B:0066E686 - Registers EAX=09F2DF00 EBX=7FFDE000 ECX=09F2DFFE EDX=09F2DFFE ESI=00000000
Access violation at address 00000000
07/19/2009 - Grand Chase - 5 Replies
Every time I run the ryu engine with the correct setting I get the problem, Access violation at address 00000000. Read of address 00000000. PLEASE help me.



All times are GMT +1. The time now is 07:24.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.