- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a console application that has been built in the Debug configuration. When I run it from within Developer Studio with the Execute Program button it fails with a MATH error (exp - Domain error). If I run the program with the Go button in an attempt to debug it, it runs to completion. The floating point exception handling is set to 0.
The program is failing deep inside an iterative solver which is going to be a pig to debug without the debugger. Any ideas?
The program is failing deep inside an iterative solver which is going to be a pig to debug without the debugger. Any ideas?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found some input data that caused the program to fail in the debugger. It would appear that starting the program with the Go button affects the floating point exception handling - a NaN condition wasn't being trapped in the debugger which was when running the program. Is this behavior obvious; have I missed something in the documentation somewhere?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My guess is that you have uninitialized data that is revealed (or hidden) when the memory layout changes, as would happen if the code was started under the debugger. There shouldn't be any FP handling differences.
Steve
Steve
![](/skins/images/71A9511A625CE5D5D45FB59952A4AA71/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page