Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
技术板块灌水区
» 实现IOTACodeInsightServices接口的类向IDE注册后应该如果释放?一退出就会出错……
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 实现IOTACodeInsightServices接口的类向IDE注册后应该如果释放?一退出就会出错……
Diroc
新警察
UID 47485
Digest Posts 0
Credits 16
Posts 6
点点分 16
Reading Access 10
Registered 2010-4-28
Status Offline
#1
Post at 2010-4-28 23:32
Profile
|
Blog
|
P.M.
实现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
cis.RemoveCodeInsightManager(FViewerIndex);
FViewerIndex := cInvalidIndex;
end;
end;
注册其它接口都不会出错,但是只要注册这个接口后,退出IDE就会弹出读取rtl70.bpl的错误。
各位高人能不能指点一下使用IOTACodeInsightServices的时候,有什么地方需要注意的?是不是实现IOTACodeInsightServices接口的类
编写有什么特殊要求的?
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 06:54
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.007923 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats