Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Floating point error: Stack Fault

Posted on 1998-03-27
1
Medium Priority
?
847 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 40 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
Suggested Courses
Course of the Month20 days, 16 hours left to enroll

810 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