replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Console window closes automatically
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Console window closes automatically

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
gpark29



Joined: 22 Oct 2012
Posts: 2

PostPosted: Mon Oct 22, 2012 1:55 pm    Post subject: Console window closes automatically Reply with quote

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... Confused
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8211
Location: Salford, UK

PostPosted: Mon Oct 22, 2012 3:26 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2402
Location: Yateley, Hants, UK

PostPosted: Mon Oct 22, 2012 6:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
gpark29



Joined: 22 Oct 2012
Posts: 2

PostPosted: Tue Oct 23, 2012 11:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8211
Location: Salford, UK

PostPosted: Wed Oct 24, 2012 8:15 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group