[fpc-pascal] move problem
Ryan Joseph
ryan at thealchemistguild.com
Fri Nov 3 04:01:39 CET 2017
I was just trying to run some old code and found that my calls to Move are crashing (3.1.1/ppcx64) so I tried to make this simple example and it’s crashing also. Also for some reason I can’t use @i as the first parameter of Move and MemSize on “dest” returns 24 instead of 4. What’s going on here???
var
i: integer;
dest: pointer;
src: pointer;
dest := GetMem(sizeof(i));
i := 100;
src := @i;
Move(src, dest, sizeof(i));
writeln(PInteger(block)^);
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list