创建一个类
TCell = record
name : string[32];
age : integer;
end;
TCells =array of TCell;
TRow = record
flag : byte;
cells : TCells;
end;
TRows = array of Trow;
TMyclass = class(TObject)
public
myrow : TRows;
tmproe : TRows;
tmpcell : TCells;
.....
end;
在调用free的时候,老是报"Invalid pointer operation"
不知是什么原因?
请高手指教
TCell = record
name : string[32];
age : integer;
end;
TCells =array of TCell;
TRow = record
flag : byte;
cells : TCells;
end;
TRows = array of Trow;
TMyclass = class(TObject)
public
myrow : TRows;
tmproe : TRows;
tmpcell : TCells;
.....
end;
在调用free的时候,老是报"Invalid pointer operation"
不知是什么原因?
请高手指教
constructor TObject.Create;
begin
end;destructor TObject.Destroy;
begin
end;procedure TObject.Free;
begin
if Self <> nil then
Destroy;
end;
所以,请给出你的程序中覆盖了以上方法的代码,大家研究一下。