- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have some mixed language DLLs with Fortran code in C wrappers with exception handlers that rely on Windows SEH to exit gracefully in the event of a divide by zero or other serious error. This no longer seems to work. A divide by zero results in an infinity and the program just marches along.
I am guessing this has something to do with the new floating point environment stuff.
What settings in the GUI do I have to change to get back the old behavior (where a divide by zero would trigger a Windows exception)?
Compiler is 11.1.038 ia-32
TIA
Dick Kaehler
I am guessing this has something to do with the new floating point environment stuff.
What settings in the GUI do I have to change to get back the old behavior (where a divide by zero would trigger a Windows exception)?
Compiler is 11.1.038 ia-32
TIA
Dick Kaehler
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I doubt it's actually SEH that is the issue. Try compiling with /arch:ia32 (Code Generation > Enable enhanced instruction set > No enhanced instruction set.)
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I doubt it's actually SEH that is the issue. Try compiling with /arch:ia32 (Code Generation > Enable enhanced instruction set > No enhanced instruction set.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
I doubt it's actually SEH that is the issue. Try compiling with /arch:ia32 (Code Generation > Enable enhanced instruction set > No enhanced instruction set.)
Thanks Steve, that took care of my problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Figuring out why this helps is on my list of things to look into. I ran into it when trying to figure out why the GetExceptionPointers sample stopped working in 11.0. It turned out that with the change to using SSE instructions by default, the exceptions were never being raised at all. I didn't spend a lot of time on this yet.

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