2 Replies Latest reply on Jan 30, 2007 2:05 AM by Matthias_HOB

    What's This Help crashing when using RoboHelp's HtmlHelp API

    Matthias_HOB
      I followed all the instructions described in the RoboHelp developer help file. The correct initialisation at the InitInstance of the application
      is called using the CSHInitialize(szHelpPath, TRUE). Then, I registered the dialog for the "What's This?" help, using the SHRegisterDialog(...) API. When I right click the mouse on any control in the dialog I always end up with a crash reporting the following error:

      "The exception unknown software exception (0x0000005) occurred in the application at location 0x4b78d471".

      When we debugged the problem we got the following message in the debugger which indicates that the crash is happining in the hhctrl.ocx library:

      "Unhandled exception at 0x4b78d471 (hhctrl.ocx) in hoblinkl.exe;
      0x0000005: Access violation reading location 0x00000000"


      In the meantime another image illustrates the call stack right before the crash (message not included).

      Note that for this application, we have the resouces loaded from a resource DLL. However, we were told that the help file was generated using these resource DLLs. We used this dialog as a testing platform because it is one of the simplest dialogs without the complexities of property pages etc., which do load certain dialog resources dynamically.

      However, to further test the problem, we implemented the context sensitive help on a more complex dialog using the standard HtmlHelp Api, where we are passing an array containing the mappings between the IDs and the Help topics (for now the mapping is fixed to one topic ID for simplicity) and I managed to make the context sensitive help work (not through the What's this menu but rather through the '?' button at the top right corner of the dialog.) The proper context help topic is displayed according to the mapped ID.

      Has anybody faced this problem and is there a solution for it? ;
        • 1. Re: What's This Help crashing when using RoboHelp's HtmlHelp API
          Brian.Mccaffery Level 1
          Hello Matthias,

          Welcome to the forum.

          What I would suggest as a start point would be:

          1. Check that the Critical Update 811630 has been installed
          3. unregister and then re-register the HTML Help ActiveX control:
          regsvr32 /u C:\winnt\system32\hhctrl.ocx
          regsvr32 C:\winnt\system32\hhctrl.ocx

          Hope it helps,
          Brian
          • 2. Re: What's This Help crashing when using RoboHelp's HtmlHelp API
            Matthias_HOB Level 1
            Unfortunately the update did not help. Using the field-level help in the dialog always ends up with a crash reporting the above error.
            The report generated from Microsoft's Windows XP is as follows:

            <?xml version="1.0" encoding="UTF-16"?>
            <DATABASE>
            <EXE NAME="HOBLinkL.exe" FILTER="GRABMI_FILTER_THISFILEONLY">
            <MATCHING_FILE NAME="HOBLinkL.exe" SIZE="466944" CHECKSUM="0xE180B629" BIN_FILE_VERSION="5.3.0.1" BIN_PRODUCT_VERSION="5.3.0.1" PRODUCT_VERSION="TE Version 5.3" FILE_DESCRIPTION="HOBLink Launcher" COMPANY_NAME="HOB GmbH &amp; Co KG" PRODUCT_NAME="HOBLink Terminal Edition" FILE_VERSION="5, 3, 0, 1" ORIGINAL_FILENAME="HOBLinkL.exe" INTERNAL_NAME="HOBLinkL" LEGAL_COPYRIGHT="Copyright © 2006, 2007 - HOB GmbH &amp; Co. KG. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x5124E" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="5.3.0.1" UPTO_BIN_PRODUCT_VERSION="5.3.0.1" LINK_DATE="01/29/2007 07:23:50" UPTO_LINK_DATE="01/29/2007 07:23:50" VER_LANGUAGE="English (United States) [0x409]" />
            </EXE>
            <EXE NAME="hhctrl.ocx" FILTER="GRABMI_FILTER_THISFILEONLY">
            <MATCHING_FILE NAME="hhctrl.ocx" SIZE="546304" CHECKSUM="0x38577544" BIN_FILE_VERSION="5.2.3790.2453" BIN_PRODUCT_VERSION="5.2.3790.2453" PRODUCT_VERSION="5.2.3790.2453" FILE_DESCRIPTION="Microsoft® HTML Help Control" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="HTML Help" FILE_VERSION="5.2.3790.2453 (srv03_sp1_gdr.050525-1542)" ORIGINAL_FILENAME="HHCtrl.ocx" INTERNAL_NAME="HHCtrl 1.41" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x8B1D0" LINKER_VERSION="0x50002" UPTO_BIN_FILE_VERSION="5.2.3790.2453" UPTO_BIN_PRODUCT_VERSION="5.2.3790.2453" LINK_DATE="05/27/2005 02:04:27" UPTO_LINK_DATE="05/27/2005 02:04:27" VER_LANGUAGE="English (United States) [0x409]" />
            </EXE>
            <EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
            <MATCHING_FILE NAME="kernel32.dll" SIZE="983552" CHECKSUM="0x4CE79457" BIN_FILE_VERSION="5.1.2600.2180" BIN_PRODUCT_VERSION="5.1.2600.2180" PRODUCT_VERSION="5.1.2600.2180" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xFF848" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.2180" UPTO_BIN_PRODUCT_VERSION="5.1.2600.2180" LINK_DATE="08/04/2004 07:56:36" UPTO_LINK_DATE="08/04/2004 07:56:36" VER_LANGUAGE="English (United States) [0x409]" />
            </EXE>
            </DATABASE>


            Any other ideas how to solve this problem?