Menu

Problem compiling with HHC

Help
2010-01-27
2012-07-18
  • Richard Benn

    Richard Benn - 2010-01-27

    Hi,

    I have a project that previously worked with DCTD but now it fails when
    invoking the Help Compiler. The Help Compiler runs for a little bit then
    displays a message "An internal error has occurred - An error record has been
    saved to C:.err."

    Here is what C:.err looks like:

    Wednesday, January 27, 2010 14:12:30

    HHA Version 4.74.8702

    htmlproc.cpp(114) : Assertion failure: (pszTmp ==
    m_pCompiler->m_pHtmlMem->psz)

    The resulting .chm file is just 5k and openes with a "page cannot be found"
    message.

    In the output folder are a .hhc file (nearly 3MB) a .hhp file (900KB) and a
    .hhk file (0KB). I have been trying to remove lines from the first two of
    these to try and narrow down the error but without much luck so far.

    Any other ideas?

    I tried a different project and it worked fine.

    Using DCTD 0.23.0.868

    Thanks.

     
  • Richard Benn

    Richard Benn - 2010-01-27

    Some further information:

    The problem appears to be with the .hhc file. This has some 94209 lines. I
    have found by trial and error that if I remove some classes from this file I
    can get hhc.exe to compile the help file. The number of lines doesn't seem to
    be an issue as I have had success with 87301 lines and failure with 86963
    lines. There doesn't appear to be any one particular line that causes a
    problem either as I have successfully compiled the first half of the file,
    then the second half.

    My guess is it is something to do with the number of items at a particular
    level, but I have no basis for that assumption! Does anyone know if there are
    any HHC restrictions in this regard?

     
  • TridenT

    TridenT - 2010-02-03

    Hi rbenn,

    have a look to the existing tracker here:

    https://sourceforge.net/tracker/index.php?func=detail&aid=1892727&group_id=96
    281&atid=614255

    I've found many articles about HHC having the same issue, but no real fix was
    found.

    Your analysis is good, and I will try to investigate your thinking : the
    number of items at a particular level

    I'm so sad not being able to eradicate this bug ...

    Can you upload if possible your .hhc file (in zip format) or send it to me.

    I try to colelct as many info as possible on this subject.

    I should really write a faq on this, as many users are impacted.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.