Silverfrost Forums

Welcome to our forums

Console window closes automatically

22 Oct 2012 12:55 #10880

Hi everyone. I'm trying to get silverfrost ftn personal edition up and running on Windows 7. I tried to build and compile then run a program, but the black console window pops up with the ad and then after a little while the program executes itself, I presume, then the window closes right away. How can I make the window stop disappearing right away? It flashes so quickly that I can't even tell if my program worked.

Thanks for your help! I'm just getting started... :?

22 Oct 2012 2:26 #10883

The 'black' box will stay open if you run the executable from Plato or if you run it from a command line in a Command prompt window (DOS box).

22 Oct 2012 5:31 #10886

Other hints:

Before your Fortran STOP put in a READ statement - the window will stay open waiting for input.

At the front of your source code, put the WINAPP directive. This will give you a white box with black text!

Put in a CALL BEEP@ statement before STOP, then you will get an audible confirmation that the program ran.

Eddie

23 Oct 2012 10:29 #10896

Thank you for your help.

I am actually having this issue when I run the program from Plato when I click the icons for compile, build and then the play button. Maybe I am doing something wrong there?

In any case, the tip about the winapp directive worked! I see the white box with black text and that stays open until I close it.

24 Oct 2012 7:15 #10898

From Plato you should get a message at the end of your output to say 'Press RETURN to close window'. So you should avoid pressing RETURN until you have read your output.

Please login to reply.