Tmyclass=class
header: tlist;
private
arecord:^arrnode;
public procedure init(k:integer);
procedure insert (k,a,b:integer);
function posindex(k,a:integer):integer;
function pos (k,a,b:integer):list;
end;
var
index:integer;
aray:array of tmyclass;
implementation
uses llfbs;
procedure tmyclass.init (k:integer);
var
i,len:integer;
begin
aray[k]:=tmyclass.Create;
len:=ds[k].kcount;
header:=tlist.Create;
.............为什么单步执行到header:=tlist.create;时出错。错误提示为
---------------------------
Debugger Exception Notification
---------------------------
Project Project1.exe raised exception class EAccessViolation with message 'Access violation at address 004AF0BB in module 'Project1.exe'. Write of address 00000004'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------
请高手们不吝赐教!!!
header: tlist;
private
arecord:^arrnode;
public procedure init(k:integer);
procedure insert (k,a,b:integer);
function posindex(k,a:integer):integer;
function pos (k,a,b:integer):list;
end;
var
index:integer;
aray:array of tmyclass;
implementation
uses llfbs;
procedure tmyclass.init (k:integer);
var
i,len:integer;
begin
aray[k]:=tmyclass.Create;
len:=ds[k].kcount;
header:=tlist.Create;
.............为什么单步执行到header:=tlist.create;时出错。错误提示为
---------------------------
Debugger Exception Notification
---------------------------
Project Project1.exe raised exception class EAccessViolation with message 'Access violation at address 004AF0BB in module 'Project1.exe'. Write of address 00000004'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------
请高手们不吝赐教!!!
解决方案 »
- 求教!“免打扰”的原理
- 关于指针的释放
- 怎么读出数据库图片?
- 请问怎样取DBGRID和dbgrideh某行某列的内容??
- 请教有关刻录方面的资料!
- 关于运动会的秩序册的生成的问题,由数据库的运动员的报名资料生成秩序册时考虑兼项冲突等应如何做,生成的秩序册放在一个表中?
- ADO 问题在线等待!
- 请教DELPHI dbgrideh+ACCESS的专家
- 日期型字段问题求教!!
- 怎样在quickrep中实现年,月,日分别输出
- 网络数据库的开发(小小的,呵呵)
- 我大约每隔1秒就创建400-500个线程,结果程序的窗口没有响应了,加了application.processmessage 也没有用,请问高手如何解决???给分!!!
我的问题已经由我得同学帮忙解决了!
问题在于我给header分配内存的时候要指明是那个类里的,所以要改为
aray[k].header:=tilst.creat!
好了,谢娴大家!