Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.10.23;
Скачать: CL | DM;

Вниз

Не добавляет в TList объект.   Найти похожие ветки 

 
Kiril ©   (2003-10-13 00:06) [0]

Столкнулся с такой фигней. (Пробовал и TClassList и вообщем все, самое интересное, что при TStrings и добавляю строку, таже ситуация, что и при TList.) При попытке добавить выдает AccessViolation.

TTypeData = class
TypeName : String[20];
SmalHeight : real;
SmalLength : real;
LargeHeight : real;
LargeLength : real;
private
public
end;


-------------------------------------------

type
TTVprogram = class
TypeAll :TList;
procedure Load;
private
public
end;

implementation

procedure TTVprogram.Load;
var t : Text;
ttd : TTypeData;
s : String;
n : Real;
SystemFont : TStrings;
begin
ttd:=TTypeData.Create;
SystemFont:=Screen.Fonts;
AssignFile(t,FontFile);
Reset(t);
while not Eof(t) do
begin
Readln(t,s);
ttd.TypeName:=s;
...
If SystemFont.IndexOf(s)=-1 then Continue
else TypeAll.Add(ttd);//ошибка
end;
CloseFile(t);
end;


 
Palladin ©   (2003-10-13 00:10) [1]

а почемубы ей и не выдавать
объект класса ведь не создан



Страницы: 1 вся ветка

Текущий архив: 2003.10.23;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.03 c
1-74210
CaNaBiS
2003-10-09 18:33
2003.10.23
Ребят делаю чат в локалке.Какой компонент использовать чтоб...


9-73959
Vitas2
2003-04-18 17:30
2003.10.23
давайте что нибудь напишим все вместе


6-74361
Terminus
2003-08-25 16:39
2003.10.23
Помогите найти компоненты для TCP... :)


14-74428
ИМХО
2003-10-06 16:05
2003.10.23
Теория DBF


1-74125
From_X
2003-10-10 17:12
2003.10.23
Web Browser Navigate Method return when Document is Complete