Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Unhandled exception: User breakpoint in IVF when opening a file

gtokic
Beginner
565 Views
Hi,

I'm having a problem when debugging a console application using Intel Fortran Compiler 10.1.021 (IA-32) with Visual Studio .NET 2003.
Everything is written in fortran and compiles, builds and runs nicely. However, if I try debugging it, there is

Unhandled exception at : User breakpoint

which stops the debugger at a line like

open(unit=12,file=name,status='old',form='formatted')

where name is declared variable. Is it possible to debug the code with file I/O operations?

Thanks,

Grgur
0 Kudos
4 Replies
Steven_L_Intel1
Employee
565 Views
Look behind the Visual Studio window for a message box or the console window. There you will likely see an error about a reference to an uninitialized variable.
0 Kudos
gtokic
Beginner
565 Views
Hi Steve,

Thanks for such a fast reply and sorry for my shortsightedness. The variable was initialized, but the file was in the wrong folder so it couldn't be found.

Thanks,
Grgur

0 Kudos
Steven_L_Intel1
Employee
565 Views
Oh, right. I/O errors also trigger a "user breakpoint" with the message in the console window (or a message box.) Unfortunately, VS takes control and hides the window, so you may not notice it. A common problem.
0 Kudos
g_f_thomas
Beginner
565 Views

It's good practice to usethe ERR and IOSTAT arguments in open/close, read/write, and inquire to handle this sort of thing.

Gerry

0 Kudos
Reply