Google

星期五, 三月 25, 2005

Clear COM reference with quit from application using Delphi

uses
ComServ;

type
_TComServerHack = class(TComServer)
end;

while (_TComServerHack (ComServer)).ObjectCount > 0 do
_TComServerHack (ComServer).CountObject(False);
CanClose := True;

0 条评论:

发表评论

<< 主页

辽ICP备05003652号
流风洄雪听天籁,轻云蔽日看落花

Powered by Blogger