procedure TFormbase.MTranBtn8Click(Sender: TObject);
var
ms: Array of PTmemoryStream;
i:integer;
begin
SetLength(ms, SizeOf(PTmemoryStream)*tinytable1.RecordCount);
ImageEnMView1.Clear;
for i:=0 to tinytable1.RecordCountdo
begin
ms^:=TMemoryStream.Create;
tinytable1photo.SaveToStream( ms^ );
ms^.Position:=0;
ImageEnMView1.SetImageFromStream( ImageEnMView1.AppendImage, ms^ );
end;
end;
更正后,程序可以正常运行,其他功能也正常,但按这个procedure的按钮后,提示如下错误窗口:
Access violation at daaress 004af3a4 in module 'project1.exe',Write of address 00000000,按该窗口的"确定"后,程序继续运行,也就是说这个procedure没弄好,
不知该怎么改?多谢多谢。