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 ,这个我也加了,放在第一个位置