Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

FLOATING POINT OVERFLOW

edited September 2006 in General
Delphi 7 Enterprise, RB 7.04.
I got the error:
Floating Point Overflow
when I call the Print of the TppReport.

Is this related to the version 7?
Is there any patch/update for version 7.04?

Comments

  • edited September 2006
    Hi Alan,

    Are there any printers installed on your machine? There may be a patch
    available that could fix this problem. Send an email to
    support@digital-metaphors.com requesting it and we'll send it to you as soon
    as possible.

    I also recommend installing a trial version of RB 10.04 and testing with
    that.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2006
    Hi Alan,

    This is an error that was brought to our attention not long ago and deals
    with many printer drivers simply containing a floating point exception that
    is normally never picked up due to the fact that some applications such as
    Word or Excel are coded in C++. There is a patch available for this issue
    for RB 10.04 however as a work-around, you can add the following code to
    your application either as it is loaded or before you print to remove the
    error...

    uses
    SysUtils;

    Set8087CW(Default8087CW or $3f); //turn off floating point exception
    checking

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2006
    One of my clients got this error when tried to print via HP Color LaserJet
    2600N.
    Our company does not have this printer for testing.

    Do you reckon the
    Set8087CW(Default8087CW or $3f);

    might do the trick?

  • edited September 2006
    Alan T wrote:


    I have had the floating point issue for two of our customers; one with
    a HP printer and one with a OKI printer. In both cases letting them
    update the printer drivers to the latest version fixed the issue.

    Jan Derk
  • edited September 2006
    Hi Alan,

    Yes, the code I mentioned below should fix the issue for your customer's
    setup.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2006
    We have around more than 100 clients using our application and most of them
    get the printer working with other applications like MS Office, it is hard
    to convence them to download the latest printer driver because of their new
    printer. What they think will be our application's fault because the printer
    is a new model and was just installed so the printer driver will be the
    latest.

  • edited September 2006
    Alan T wrote:



    I understand your view point, but I recommend being careful suppressing
    error messages, as it may bite you in the back later. One solution
    could be to only suppress floating point exceptions in official
    releases.

    Jan Derk

  • edited September 2006

    I searched Google and Google Groups about this subject a few weeks ago. In a
    nutshell, the Borland compilers check for floating point overflow errors but
    MS compilers do not. So MS Word ignores the floating point error caused by a
    bad driver, but a Delphi app will experience an error.

    That explains why MS apps would work with the bad printer and why updating
    the printer driver can often resolve the error.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.