?
Solved

Floating point error: Stack Fault

Posted on 1998-03-27
1
Medium Priority
?
832 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
Suggested Courses

777 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