千
千中元
Unregistered / Unconfirmed
GUEST, unregistred user!
Table: TAdoTable;
initialization
begin
TComObjectFactory.Create(ComServer, TOurNSHandler, Class_OurNSHandler,
'OurNSHandler', 'OurNSHandler', ciMultiInstance, tmApartment);
Table := TAdoTable.Create(nil); -----在这里出现错误
Table.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Password="";Data Source=E:/刻录/控件/IE/App/namespace/db2.mdb;Persist Security Info=True';
Table.TableName:='TestProgram';
table.active := true;
end;
finalization
table.free;
出现的错误信息为:Raised a Exception class EOleSysError with message
"标记没有引用存储"
constructor TADOCommand.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FCommandObject := CreateADOObject(CLASS_Command) as _Command;
----跟踪错误,是在这一行
FParameters := TParameters.Create(Self, TParameter);
FParamCheck := True;
CommandType := cmdText;
CommandTextAlias := 'CommandText'; { Do not localize }
ComponentRef := Self;
end;
如果将TadoTable换成TTable (其他代码相应改动),则无此错误信息
initialization
begin
TComObjectFactory.Create(ComServer, TOurNSHandler, Class_OurNSHandler,
'OurNSHandler', 'OurNSHandler', ciMultiInstance, tmApartment);
Table := TAdoTable.Create(nil); -----在这里出现错误
Table.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Password="";Data Source=E:/刻录/控件/IE/App/namespace/db2.mdb;Persist Security Info=True';
Table.TableName:='TestProgram';
table.active := true;
end;
finalization
table.free;
出现的错误信息为:Raised a Exception class EOleSysError with message
"标记没有引用存储"
constructor TADOCommand.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
FCommandObject := CreateADOObject(CLASS_Command) as _Command;
----跟踪错误,是在这一行
FParameters := TParameters.Create(Self, TParameter);
FParamCheck := True;
CommandType := cmdText;
CommandTextAlias := 'CommandText'; { Do not localize }
ComponentRef := Self;
end;
如果将TadoTable换成TTable (其他代码相应改动),则无此错误信息