Solved

Floating point error: Stack Fault

Posted on 1998-03-27
1
819 Views
Last Modified: 2009-07-29
Borland C++
When port a program from one computer to another, got this error message on the new computer:

Floating point error: Stack Fault
Abormal program Termination

The program runs perfectly under the old computer.  

Any reasons why?
0
Comment
Question by:engllf
1 Comment
 

Accepted Solution

by:
nibbler earned 20 total points
ID: 1257879
Tell me first which version of Borland C++ you use (windows/dos),
did you run it under Windows ???
Which computer is the old one (286) and the new one ??
Which instructions did you use...
etc..

I think I know the answer (It happend to me too, several times)
Try to initialise the floating point values.
If you're programming in protected mode, you could turn off all floating points bits of the _control87 variable. (This worked for me)..

btw.. If you reject this answer, please mention the questions I asked at the top of this answer..

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now