原型:int __stdcall GetJpegImage(HANDLE hChannelHandle,UCHAR *ImageBuf, 
ULONG *Size,UINT nQuality)
最后参数为图像质量为1-100,100时质量最好Delphi:function GetJpegImage(channelNum:integer;ImageBuf:pchar;lSize:pdword;nQuality:dword):Integer;stdcall;external hik40xx;调用:
var
  i_succ: Integer;
  ptr:pchar;
  pSize:Integer;
begin
  new(ptr);
  pSize:=704*576*2;
  i_succ:=Self.HSdk.GetJpegImage(_num, ptr, @pSize, 100);
end;现在的问题是:在取图像的过程中,如果质量设置为100,一张图片也读不出来,进入CPU调试状态,并报错"access violation at 0x0040dd9d write of address 0x00030fbc,如果设置为80,则可能读取成功一次数据,再报错;如果设置为60,则可成功读取4次左右后报错,以下类推.
哪位知道这是什么原因,还是我的写法有问题?不会和硬件有关系吧