Function ReadStart():Longint;stdcall;
begin
while true do begin
ReadProcessMemory (hProcess, Pointer(test+$20), @test, 4, tt);
Form1.Label43.Caption:='Label'+inttostr(test);
myint:=strtoint(Form1.Label3.Caption);
ReadProcessMemory (hProcess, Pointer(test+myint), @test, 4, tt);
Form1.Label43.Caption:='Label'+inttostr(test);
end;
end;在DLL里开一个线程,循环读取/输出数据,偶尔会出现“invalid pointer operation”的错误提示,不知道是怎么回事啊?use ShareMem ,这个我也加了,放在第一个位置
begin
while true do begin
ReadProcessMemory (hProcess, Pointer(test+$20), @test, 4, tt);
Form1.Label43.Caption:='Label'+inttostr(test);
myint:=strtoint(Form1.Label3.Caption);
ReadProcessMemory (hProcess, Pointer(test+myint), @test, 4, tt);
Form1.Label43.Caption:='Label'+inttostr(test);
end;
end;在DLL里开一个线程,循环读取/输出数据,偶尔会出现“invalid pointer operation”的错误提示,不知道是怎么回事啊?use ShareMem ,这个我也加了,放在第一个位置
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货