DELPHI运行的内存地址问题
procedureTfrmMain.CheckListBox1ClickCheck(Sender:TObject);varselectcount:arrayofinteg...
procedure TfrmMain.CheckListBox1ClickCheck(Sender: TObject);
var
selectcount:array of integer;
itemcount,aa,sbegin:integer;
begin
aa:=0;
sbegin:=0;
itemcount:=checklistbox1.Count ;
while sbegin<itemcount do begin
if checklistbox1.Checked[sbegin] then begin
selectcount[aa]:=sbegin;
inc(aa);
end;
inc(sbegin);
end;
end;
运行时出错:Access violation at 004665DC in module 'Monitor.exe'.Write of address 00000000.
Monitor.exe是程序名 展开
var
selectcount:array of integer;
itemcount,aa,sbegin:integer;
begin
aa:=0;
sbegin:=0;
itemcount:=checklistbox1.Count ;
while sbegin<itemcount do begin
if checklistbox1.Checked[sbegin] then begin
selectcount[aa]:=sbegin;
inc(aa);
end;
inc(sbegin);
end;
end;
运行时出错:Access violation at 004665DC in module 'Monitor.exe'.Write of address 00000000.
Monitor.exe是程序名 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询