Главная страница | назад

Article #15579: Floating Point overflow error in Windows 95

 Question and Answer Database

FAQ579C.txt   Floating Point overflow error in Windows 95
Category   :IDE
Platform    :Windows 95
Product    :   BC++4.5x   BC++5.x   TC++Win4.5


I have recently installed Borland C++ 4.5 on my computer, and 
every time I run a program compiled by BC++ which includes
entering data of the 'double' data type, I get the error message
'Floating Point error: Overflow'. Example:

void main()
   double In;
   cout << "\n Enter a number: ";
   cin >> In;
   cout << "\n You entered " << In;
This program runs perfectly fine if I for instance enter the 
number 54 when prompted, but if I enter 4.5, for instance, I get 
an overflow error.


This error occurs if you have the Microsoft Windows 95 Plus Pack 
installed without Service Pack 1. There is a bug in a component 
of the System Agent that causes this problem. You can do one of 
two things to fix the problem:
1) Get Service Pack 1 from www.microsoft.com and install it,
2) Turn off the System Agent. You can find it from 
Start|Programs|Accessories|System Tools. Go to the Advanced menu
and choose "Suspend System Agent" or "stop using System Agent".

7/2/98 10:32:32 AM

Last Modified: 01-SEP-99