jAmEs_
灌水部部长
![Rank: 8](images/eng/star_level3.gif)
UID 886
Digest Posts
0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5 Location 广东
Status Offline
|
|
好像这样可以解决:
通过变量保存IDesignNotification接口指针,然后结束时,把指针赋值nil。
var
MyNotify:IDesignNotification;
initialization
try
MyNotify:=TMyNotify.Create;
except
MyNotify:=nil;
Raise;
end;
RegisterDesignNotification(MyNotify);
finalization
UnRegisterDesignNotification(MyNotify);
MyNotify:=nil;
end.
|
|
|