- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a code written in Mac Fortran. Now I am going to run it in windows Fortran. After rebuilding there is no error but at the beginning of debugging I receive this message
Debug Assertion Failed!
Program... test.exe
File: ...winsig.c
Expression: ("invalid signal or error",0)
For information on how your program can cause an assertion failure, see the visual C++ documentation on asserts.
(press retry to debug the application)
---------------------------------------------------
Any idea how to solve it?
Thanks,Rouzbeh
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are receiving an error in the C Runtime Library used by Fortran.
(file name is winsig.c, located in the {VS}\VC\crt\src folder)
Assuming you are running the Debug Build...
Click on the Retry button in the pop-up window.
This should show you the location in winsig.c where the error occured. You might be able to ascertain the cause by examining the C code. If you need to checkout your Fortran code, use the call stack window to locate the caller. The call stack may or may not show the fortran statement that made the call. If the call stack does not show your Fortran code, then try Step-Out (Shift-F11) until you see the Fortran call. Note, you may get multiple errors inside the C runtime library, in which case you repeat this process. If you cannot step out to the Fortran statement, then you may need to insert trace statements on each call to C runtime library routines (that would be calling awinsig function).
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page