Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29234 Discussions

CVF 6.6 crash w/math error on runtime but not on debug version

chstoyer
Beginner
970 Views
I tried to use
  • Compaq Visual Fortran
  • but that link seems no longer active. I just received my upgrade to IVF but I think I need Visual Studio.NET to run it and I have not explored that yet. I am hoping switching over will not be a nightmare and that I can keep both systems installed on my computer until I am comfortable with the switch.

    The current problem: This is not the first time I have had this happen:

    I am in Developer Studio. I am in Release mode. I run a program and it crashes. This time while taking the CABS of a complex number.

    I then switch to Debug mode. Running the same program and following the same steps, it does not crash. All numbers going to the CABS function are reasonable. This works whether I choose run or debug.

    Sometimes it will crash while running the debug version but for some reason on the latest install of CVF professional I cannot get Just In Time debugging. I can only get into the debugger if I start there by using Go (F5) rather than Execute Program. Since the error never occurs, I cannot find out what causes it. Running in the debugger always gives valid numbers.

    I am running CVF professional 6.6C and the Winteracter Library. This is an executable with a statically linked library, no DLL's.

    Suggestions welcome,

    Thanks! Charles

      0 Kudos
      4 Replies
      Steven_L_Intel1
      Employee
      970 Views
      You do need VS.NET 2002 or 2003, or Visual C++.NET 2003 Standard Edition. It is no problem to have both CVF and IVF on your system at the same time and switch back and forth between them.

      Many intrinsic functions such as CABS take different paths when running optimized vs. unoptimized code. You can try starting with a debug configuration and increasing the optimization level to see if the problem appears.
      0 Kudos
      chstoyer
      Beginner
      970 Views

      Thanks! I selected "full optimization" for the debug version and I got no errors, but I did get goofy numbers. I then tested both real and imaginary components for NaN and set to something if test was positive.

      That seems to have fixed the problem in the release version.

      Suggestions as to where to look for VS.NET 2002 or 2003 or Visual C++.NET 2003 are welcome. I see that IVF does not yet work for 2005 version as yet.

      Charles

      0 Kudos
      Steven_L_Intel1
      Employee
      970 Views
      I can find a copy of Visual C++.NET 2003 Standard Edition on amazon.com (offered through a third party). A bit of searching should find this or VS.NET 2003 Professional from multiple sellers.
      0 Kudos
      tbwright
      Beginner
      970 Views
      There is an Intel note that you should install the MS C++ v2003 NET BEFORE you install the Intel Fortran Compiler.
      And currently there is a backlog on the MS C++ 2003 version since MS is coming out with another version (2005?)
      Terence Wright
      0 Kudos
      Reply