Abin Thomas
asked on
Memory Error!! Pls help
I have written a code like this in visaul c++ using a win32 API function in a WIN2000 Proffessional.
#include <windows.h>
#include <winbase.h>
void main()
{
CopyMemory((LPVOID)0xfffff fff,(void *)0x0000ffff,1);
}
i am getting an error The instruction at "0x00408410" referenced
memory at "0x0000ffff". The memory could not be "read".
I am gettinng the same error when i try to access a memory address of any hex value.
Wot could be the problem?
Thanks in advance!!,
Abin.
#include <windows.h>
#include <winbase.h>
void main()
{
CopyMemory((LPVOID)0xfffff
}
i am getting an error The instruction at "0x00408410" referenced
memory at "0x0000ffff". The memory could not be "read".
I am gettinng the same error when i try to access a memory address of any hex value.
Wot could be the problem?
Thanks in advance!!,
Abin.
you are accessing memory not in user block for that program, you can't just copy memory from somewhere in RAM, it needs to be memory you have allocated in the program you are writing or a much more complex system of IPC communication.
ASKER
dear demingj1,
i m plannming to develop a memory tester program,
which can read and write to a given memory location.
so could u help me out in giving ideas or urls?
i m plannming to develop a memory tester program,
which can read and write to a given memory location.
so could u help me out in giving ideas or urls?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.