View previous topic :: View next topic |
Author |
Message |
gpark29
Joined: 22 Oct 2012 Posts: 2
|
Posted: Mon Oct 22, 2012 1:55 pm Post subject: Console window closes automatically |
|
|
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...  |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Mon Oct 22, 2012 3:26 pm Post subject: |
|
|
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). |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2402 Location: Yateley, Hants, UK
|
Posted: Mon Oct 22, 2012 6:31 pm Post subject: |
|
|
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 |
|
Back to top |
|
 |
gpark29
Joined: 22 Oct 2012 Posts: 2
|
Posted: Tue Oct 23, 2012 11:29 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Wed Oct 24, 2012 8:15 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
|