Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.014 c
7-74494
RomCom
2003-08-09 09:50
2003.10.23
Установка Tx COM-порта


1-74166
senya
2003-10-10 12:46
2003.10.23
Развернуть/свернуть TreeView


1-74132
Darrin
2003-10-10 17:14
2003.10.23
Что такое Interface?


3-74026
stoper
2003-10-03 13:17
2003.10.23
Фильтр Query


3-74095
WuduMan
2003-10-02 01:02
2003.10.23
Картинки в базе данных




   Наверх