[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Floating point error: Stack Fault

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
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 opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

649 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