Silverfrost Forums

Welcome to our forums

Runtime exception when using module (windows 8)

17 Oct 2013 6:31 #13147

Hi, I'm running Silverfrost FT95 Express on a windows 8 laptop. When I try to write a module for my program, I receive the following runtime exception:

System.TypeInitializationException was unhandled Message: The type initializer for 'test' threw an exception.

The following code generates the error:

program test

end program test


module testModule

end module testModule

I think this must be a problem with FT95 Express, because the code compiles and runs fine using Plato IDE.

On the other hand, I am new to Fortran, so I apologize if I have overlooked something obvious.

-Brad

17 Oct 2013 6:44 #13148

Are you using the latest release of FTN95?

17 Oct 2013 6:49 #13149

I'm using version 5.4.0.0 (I downloaded it a week ago)

-Brad

17 Oct 2013 7:52 #13150

I think the Express version comes with an older version.

If you download the personal edition you get 6.35. You can install this as well and will be able to use 6.35 with the Express GUI.

Nothing wrong with the Fortran you posted. When you come to fill in the details, you will find that the PROGRAM needs to go after the MODULE.

17 Oct 2013 8:29 #13152

OK, I have downloaded and installed the personal version. But it looks like Express is still using version 5.4.0.0. How do I change that?

Thanks for your help,

-Brad

17 Oct 2013 8:33 #13153

Re-install ftn95 express over the top of what you have but only install the IDE, not the compiler. There are tick options to choose this.

I always install the compiler first, then the express IDE second.

17 Oct 2013 8:44 #13155

That worked. Compiler is updated, and the exception has gone away. Thanks so much!

-Brad

17 Oct 2013 8:47 #13156

Cool.

Don't forget you can try the Plato IDE too now. A shortcut isn't created for this, but you can drag one out of the Plato install folder to your desktop (right-click drag and choose shortcut).

Please login to reply.