Solved

Floating point error: Stack Fault

Posted on 1998-03-27
1
825 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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 structures 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.

829 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