Menu

PDF generator throws 'Assertion failure' erro

Discussion
cssi
2007-04-18
2013-04-02
  • cssi

    cssi - 2007-04-18

    DelphiDoc.1.7.5.385.bin
    While generating document to pdf, I receive a windows error popup as follows:
    Title bar: JADD - DelphiDoc
    Text box:
    "Assertion failure (C:\Programme\Borland\Projects\DelphiDoc\Generator\OldGenerators\UBasePDFDoc.pas, Zeile 2824)"
    OK button as only option.

    This happens when using a single and relatively small source unit with little actual code; could readily email if needed. Any thoughts on what is causing this error?

     
    • G. Veith

      G. Veith - 2007-04-18

      Hello,

      actually no, the position indicates that there is an error in the intermediary code to be written to the PDF file. But how this error occurs and when it is raised is not possible to see from that position alone.

      Please email the unit to the address named at the end of the webpage: http://delphidoc.sourceforge.net/ (sorry, for not naming it here again, but I already get enough spam every day), and I will try to find the error.

      While speaking about the PDF format, there is another error in the generator causing a wrong font to be used sometimes (Courier New). This error will also be fixed in the next release.

      Best regards,
      Gerold Veith

       
    • G. Veith

      G. Veith - 2007-04-18

      Hello again,

      after evaluating the source code I found the error.
      Using inline commands at the end of a line that should be used as "~preformatted" causes parts of the command to be stripped internally (in this case in line 311). I should be fixed in the next release (in about two weeks).

      Current work-around is obviously to avoid inline commands at the end of a line inside the ~[preformatted ]-inline command. Any visible character (not a white space) on the same line  after it prevents this bug.

      Best regards,
         Gerold Veith

       
    • cssi

      cssi - 2007-04-19

      Your indicated work-around did enable me to generate to pdf too. Thanks for the quick response.
      Kurt

       

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.