Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EAccessViolation

Status
Not open for further replies.

radukn

Programmer
Oct 10, 2001
1
RO
I have a problem with the IdIcmpClient Component, if anyone could help me..plz..
There my code:

var
Form1: TForm1;
vi:array[0..10] of TIdIcmpClient;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
vi[0].host:='127.0.0.1';
end;

the error is in this line "vi[0].host:='127.0.0.1';"

Thx!
 
I don't know what TIdIcmpClient is but due to the T at the beginning I'm guessing it's an object. So, you need to create the memory for them - in your formcreate add

for x := 0 to 10 do
begin
 vi[x] := TIDIcmpClient.Create(params here);
end

and in your formDestroy add

for x := 0 to 10 do
begin
vi[x].Free;
end;


That might help - good luck!
TealWren
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top