Skip to content

AV when invoking Code Insight #243

@bryanmills209

Description

@bryanmills209

Hi, I came across an issue when invoking Code Insight. I had a look at the sources and saw that you are calling internal IDE Code Insight functions like @Lspcodcmplt@TLSPKibitzManager@GetCount$qqrv via the exported functions from the .bpl files. Since you use a registered Code Insight Manager as the ASelf parameter, these calls can cause exceptions in case the manager is not the default manager but a custom registered one.

Would it be an option to replace these calls by using the OTA interfaces like here:

if Supports(FAsyncManagerObj, IOTACodeInsightManager100, lManager) then
begin
  lManager.GetSymbolList(lSymbolList);
  if Assigned(lSymbolList) then
    C := lSymbolList.GetCount
  else
    C := 0;
end
else
  C := 0;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions