delphidelphi-xe2html-help

If AKeyword is described on .chm file (html help) twice the application for Delphi XE2 freezes


We are using the following code to call html help by A-links on the application for Delphi XE2:

var
  aLink: THH_AKLink;
begin
  ZeroMemory(@aLink, SizeOf(aLink));
  aLink.cbStruct := SizeOf(aLink);
{$WARNINGS OFF}
  aLink.pszKeywords := PChar(AnsiString(AKeyword));
{$WARNINGS ON}
  aLink.fIndexOnFail := False;
  HtmlHelpW(Handle, Application.HelpFile, HH_ALINK_LOOKUP, DWORD_PTR(@aLink))
end;

But if AKeyword is described on .chm file twice the application freezes (hangs). It seems something wrong on Delphi or system libraries. But how to fix this issue on the application?

Thanks a lot for the help!


Solution

  • The best answer at the current moment is to remove all duplicated A-link on CHM-file and ensure there is no duplicates on it.