Хелп! Почему выскакивает ошибка Project.Project2.exe raised exception class EAccessViolation with message 'Access violation at address 00427DA0 in module 'Project2.exe'. Read of address 0000000000'. Process stoped. Use Step or Run to continue. при нажатии на батон.
PHP код:
procedure TForm1.Button1Click(Sender: TObject);
var
Acc:integer;
Work:boolean;
begin
work:=true;
Acc:=-1;
for Thread:=1 to strtoint(Edit1.Text) do
TNewThread.Create(false);
Thread:=strtoint(Edit1.Text);
end;
Когда убираю work, то ошибки нет, а с ним выскакивает. Почему так?