DynaPDFMBS - untrappable crash when setting font

  1. 3 months ago

    Jeff T

    Feb 16 Pre-Release Testers Midlands of England, Europe

    I have one customer for whom any attempt to set a font in a DynaPDFMBS instance causes an immediate app shutdown.
    If I dont set a font, it all works.
    I have tried Arial, Helvetica, Times New Roman to no avail.
    I have tried having the app run as Administrator.
    No other people have reported the same issue, and I sell many copies of the app per month.

    Code that seems to be related:

    call pdf.SetFontSelMode(pdf.ksmFamilyName)

    Inside DynaPDFGraphicsMBS:

    call pdf.SetFont(myFontname, Style, myTextSize, true, pdf.kcp1252)
    //myfontname is a string and defaults to 'Arial'
    //myTextSize is an integer

    At other places:

    call pdf.SetFontAnsi userSelectedFontName, pdf.kfsNormal, 24 , true, pdf.kcp1252

    Any ideas I may have overlooked?

  2. Christian S

    Feb 16 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    You can reproduce this crash with current version?

    Is that an ancient DynaPDF version?

    Can we have a crash report?
    e.g. as link to download?

  3. Jeff T

    Feb 16 Pre-Release Testers Midlands of England, Europe

    I cannot recreate it by any method.
    This is one customer among many hundreds, and there is no crash report.
    App just disappears..( I had to add logging line by line to work out where the problem lay)

  4. Jeff T

    Feb 17 Pre-Release Testers Midlands of England, Europe

    A mystery for ever then. :(
    Don't you love it when there is just one machine that doesn't work..?

  5. Christian S

    Feb 17 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    Maybe they have a broken font file installed?

    Or duplicate fonts with same name?

  6. Jeff T

    Feb 17 Pre-Release Testers Midlands of England, Europe

    All I can tease out of them is:
    Arial , and all the other names we tried , work in every other app.
    Arial doesn't appear twice in font lists.
    The machine is running in American English.
    It's Windows 10 and quite a recent machine.

    No console message, no onscreen messages, no blue screen of death, just instant and untrappable vanishing.

  7. Christian S

    Feb 17 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    You would need to install a debugger like Visual Studio to jump into debugger.

or Sign Up to reply!