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.
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
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.
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.
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.
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
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
2600N.
Our company does not have this printer for testing.
Do you reckon the
Set8087CW(Default8087CW or $3f);
might do the trick?
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
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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.
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
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