Este código de erro foi reportado por um usuário na geração do PDF da NF-e em aplicação Delphi.
Aparentemente é um bug do .NET que ocorre quando se utiliza o System.Drawing.dll e o equipamento está com a FPU exception ativada:
http://www.pcreview.co.uk/forums/arithm ... 23086.html
A solução mais simples para solucionar o problema é desativar a FPU exception no caso do Delphi.
There is a possibility that floating point exceptions cause the problem. Most runtime environments disable floating point exceptions, but with Delphi, they are enabled.
The disable floating point exceptions, use the following code:
- Código: Selecionar todos
Set8087CW($133f);
Note that this will change the behaviour of your own code as well. You will not get any exceptions any more, if there are errors in a floating point calculation, instead the result variable will be set to either NaN, Inf+ or Inf-.
http://stackoverflow.com/questions/9374 ... in-c-sharp