Linux Programming Question

Forum Linux/Free BSD : Linux/Free BSD General Discussion - Linux Programming Question

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Is there a way to make a C++ program drop core as soon as errno gets set?

In my program, a value in one of my classes is ending up NaN somewhere. It doesn't cause problems at that point, but later something tries to use it and it cores.

errno is getting set, but without adding all sorts of checks, how can I get it to drop immediately.
Thanks


<i>Cognite Tute</i>
(Think for Yourself)

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Linux/Free BSD > Linux/Free BSD General Discussion > Linux Programming Question
Go to:

There are 1094 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them