D
dpbug_cn
Unregistered / Unconfirmed
GUEST, unregistred user!
我用ole对象创建access数据库,代码如下
var CreateAccess: OleVariant;
...........
...........
CreateAccess:=CreateOleObject('ADOX.Catalog');
CreateAccess.Create('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/Aceco.mdb');
创建完毕后,我希望能够手动释放掉创建的对象,用ReleaseOleObject(CreateAccess)好像不对吧,请高手指点
var CreateAccess: OleVariant;
...........
...........
CreateAccess:=CreateOleObject('ADOX.Catalog');
CreateAccess.Create('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:/Aceco.mdb');
创建完毕后,我希望能够手动释放掉创建的对象,用ReleaseOleObject(CreateAccess)好像不对吧,请高手指点