CnPack Forum

#1 实现IOTACodeInsightServices接口的类向IDE注册后应该如果释放？一退出就会出错……
注册的代码如下所示，
var
cis: IOTACodeInsightServices;
begin
if Supports(BorlandIDEServices, IOTACodeInsightServices, cis)
and (FViewerIndex = cInvalidIndex) then
begin
FViewerIndex := cis.AddCodeInsightManager(TQNoteCodeViewer.Create);
end;
end;

在退出的时候，会执行下面代码
var
cis: IOTACodeInsightServices;
begin
if Supports(BorlandIDEServices, IOTACodeInsightServices, cis)
and (FViewerIndex <> cInvalidIndex) then
begin
..

#1 >>Next Page

Forum:技术板块灌水区 ...
Thread:实现IOTACodeInsightS ...
Next Thread:关于GetAsyncKeyState ...

Home
Login

Powered by Discuz!