Hi

Hi,
I'm trying to dive into ToolsAPI and I need information about how to debug BPL in Delphi. I concluded that I need add Delphi as Host Application but that didn't work as I though it will (ended with error). Does have anyone suggestions or sources where find that information?

Comments

  1. I'm not sure I've used IProjectNotifier, but I have several other notifiers and they were fine. How are you registering the notifier, and what's the implementation?

    What version of Delphi - XE7?

    Can you post the error you get anyway? Just in case it's relevant.

    ReplyDelete
  2. Ok, I looked into my code and on other interfaces in ToolsAPI and found out that I'm probably registering IOTAProjectNotifier in wrong way. Now I'm using:
    procedure Register;
    begin
      Index := (BorlandIDEServices as IOTAServices).AddNotifier(TUnitsWatcher.Create);
    end;

    But I probably should be registering my notifier by IOTAModule40.AddNotifier.

    Regarding that error(s) at start of host IDE:

    I'm using XE7.

    First error is: First chance exception at $768AC42D. Exception class EFOpenError with message 'Cannot open file "C:\Users\Brandt\sanct.log".+( Localized version of Process doesnt have rights to access file because another process is using this file)'. Process bds.exe (7924)
    After continue (or F9 if I did break) I will get First chance exception at $768AC42D. Exception class ESanctSocketException with message 'Cannot start instance counter.  Port is already in use (10048).'. Process bds.exe (7924)
    Next is first error again. GExperts is after that saying that multiple instances are probably running. During start of IDE it also gives First chance exception at $768AC42D. Exception class EResNotFound with message 'Resource TFrame not found'. Process bds.exe (7924).

    ReplyDelete
  3. All those except TFrame are normal. Not sure about GExperts since I don't use it. The Sanct ones are fine, they're internal and expected.

    ReplyDelete

Post a Comment