I'm very very newbie in assembly / ollydbg / reverse engineering. I'm totally lost with this error.
I have created a simple program in Delphi, just to explore in ollydbg. Here is the program's code:
procedure TForm1.SpeedButton1Click(Sender: TObject);
var somevalue : string;
begin
somevalue := 'this is a value';
showmessage(somevalue);
end;
So I attached it in olly and searched for the string "this is a value" and reached this point:
MOV EDX, 0045212C
the address 0x45212C
contains my string, so I decide to put another value in an empty address (I choose 00400400).
The problem is that when I change the code to
MOV EDX, 400400
I get the following error:
Access violation when writing to [004003F8]
Which contains the following assembly line:
LOCK INC DWORD PTR DS:[EDX-8]
What does this error mean and how can I fix it?