Hi, using Delphi 2006, I have a need to poke a few bytes into the code so I can set breakpoints, something like:
var p: ^ byte;
function Func( x: integer ): integer;
Func := x * x ;
p := @Func;
p^ := $CC;
... but of course I'm not allowed to write to the code. A good thing, except right now.