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

Runtime Error, Console Window Closes, Cannot See Error

Ernie_P_1
Beginner
560 Views

Hi,

When I build my .exe and run it, I get a runtime error - but the console window closes before I can see what the error says.

Is there a setting that will make the Console window remain open until I close it?

Thanks

0 Kudos
3 Replies
Steven_L_Intel1
Employee
560 Views
Is this when you run from within Visual Studio? Try opening a command prompt window and running it from that. Normally, when you run a program from within Visual Studio (and use Start Without Debugging), the window will remain open. If you are using "Start" (with debugging), and the program exits, the window will close.
0 Kudos
Ernie_P_1
Beginner
560 Views

Thanks for the reply, Steve.

I was not running from within Visual Studio. I will eventually be having other people use my executeables and they won't be able to run from within visual studio. Running from the command prompt works.

Thanks

Aaron

0 Kudos
Mitchell_Brown
Beginner
560 Views
Quoting - Ernie P.

Thanks for the reply, Steve.

I was not running from within Visual Studio. I will eventually be having other people use my executeables and they won't be able to run from within visual studio. Running from the command prompt works.

Thanks

Aaron

I have a similar problem. Running always from a command prompt is not that convenient. I have a program that, depending on the set up, can run for days (numerical model). Generally it is run from inside another program (such as an Arcview GUI). When the program dies (13 hours into the run), there is no way to retrieve the reasons behind the crash since the window closes and it takes a long time to re-run the simulation just to get at the reason for a crash.

It seems that there should be a compiler option to keep the console window open when it exits witha run-timeerror code. Iseem to remember there was a way to do this withCVF, but perhaps it was Lahey.

0 Kudos
Reply