Silverfrost Forums

Welcome to our forums

plato - start run command

13 Oct 2014 10:50 #14809

Hi,

I am editing code in Plato (ftn95) - the code compiles successfully, but I can't start the run (ctrl + F5) - everything used to work and i haven't changed any settings.

What happens is the run Window flashes up and then instantly disappears.

can anyone help?

thanks

Dave

13 Oct 2014 11:13 #14810

Check to make sure that the executable is created and try running it from a command line in 'Command Prompt' window.

If you need help with either of these steps then ask again.

13 Oct 2014 12:09 #14811

Hi, so the program runs from the command line fine.

i guess thats a solution to my problem, buts its really annoying for my work. Is there anyway to fix this issue?

Dave

13 Oct 2014 1:39 #14813

David,

It does what you told it to do - it runs and finishes. In the command prompt window you see various other messages which hang around after your program finished. If you want it not to finish and close its window when run from Plato, put something in your code to prevent it closing, like a PAUSE statement.

Or, declare it to be WINAPP, include <WINDOWS.INS>, and put this code at the bottom of your program just before EXIT or END (whichever you use).

I=WINIO@('%ca[Demo]Run finished%nl%bt[Close]')

If you are using the Personal Edition and you use the LGO option, then you don't see the 6-second nag screen ..

Eddie

13 Oct 2014 1:46 #14814

thanks for the suggestion Litus,

however, it used to just run from the plato window - I have tried uninstalling, and re-installing. but with no success.

The debugging window works, just not the standard run.

Any advice please?

Dave

13 Oct 2014 2:04 #14816

I'll have a think.

Eddie

13 Oct 2014 2:09 #14817

thanks Eddie, much appreciated,

Dave

13 Oct 2014 2:48 #14818

Assuming that you are creating a 'Console' application, try running a simple 'Hello World' program to see if that works.

13 Oct 2014 3:21 #14819

Hi,

thanks for the reply,

the 'hello world' program does the same thing.

many thanks,

Dave

14 Oct 2014 7:16 #14822

For console applications, Plato uses a 'Control break handler' and appends the message 'Press RETURN to close window...' after your output.

Make sure that you do not press RETURN.

Try putting a PAUSE in your Fortran code to see if that works - i.e. to test if it is just the 'break handler' that is not working.

16 Oct 2014 9:17 #14854

Hi,

thanks for the suggestion, but the program is not even starting.

if you add a PAUSE command on the first line of the program i doesn't even feature.

Still very confused,

Dave

Please login to reply.