Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 07:33

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

Advertisement



[question] memcpy, access violation

Discussion on [question] memcpy, access violation within the General Coding forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
AutoItDude's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 93
Received Thanks: 315
[question] memcpy, access violation

is it ok to type cast byte buffer by (void*)?

Code:
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.
please delete this thread.
AutoItDude is offline  
Old 10/02/2011, 15:56   #2
 
elite*gold: 0
Join Date: Apr 2006
Posts: 6,597
Received Thanks: 1,830
try
Medix is offline  
Closed Thread


Similar Threads Similar Threads
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
C++ Memcpy
12/28/2010 - C/C++ - 6 Replies
Hey Leute, wie immer!! hab mal ne Frage ;D Kann mir einer denn Fehler im Source sagen?! Source: #include <Windows.h> #include <stdio.h> #pragma warning(disable: 4312) void Hack() {
Unhandled Exception: Access Violation (c0000005)
07/06/2010 - Diablo 2 - 9 Replies
Hi leute ^^ ich hab grad eben andariel getötet und als der drop und der komische strahl nach oben kommen sollte bekam ich die message Unhandled Exception: Access Violation (c0000005) Hab andariel jetzt schon sieben mal in sieben games getötet und immer das gleiche.. €:Juhuu es geht wieder :'D
Unhandle Exception Access Violation (C0000005)
09/25/2009 - Diablo 2 - 1 Replies
Hallo, also ich hab mir eben lolwut 4c gesaugt ... und wenn ich dann das progdamm auf "ende" drücke ... kommt diese meldung"Unhandle Exception Access Violation (C0000005)"? was machen?=)
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:33.


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.