How to implement IOTAProjectCompileNotifier of Delphi's ToolsAPI?

前端 未结 3 1199
醉梦人生
醉梦人生 2021-01-07 05:32

I am using Delphi XE IDE. I create a notifier to implement IOTACompileNotifier. After install the expert in the IDE. The code works fine when I compile my project. The n

3条回答
  •  难免孤独
    2021-01-07 06:07

    I wonder why you're removing your notifier from within the callback. I could imagine that scenario is not handled well by OTA. Try the following: first (when the package is loaded and initialized) install an IOTAIDENotifier to be notified when a project is open (remove it in finalization). Implement its FileNotification to add your IOTAProjectCompileNotifier when a project is open, remove it when it's closed.

提交回复
热议问题