View previous topic :: View next topic |
Author |
Message |
Brad
Joined: 17 Oct 2013 Posts: 8
|
Posted: Thu Oct 17, 2013 7:31 pm Post subject: Runtime exception when using module (windows 8) |
|
|
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:
Quote: | System.TypeInitializationException was unhandled
Message: The type initializer for 'test' threw an exception.
|
The following code generates the error:
Code: | 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 |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Thu Oct 17, 2013 7:44 pm Post subject: |
|
|
Are you using the latest release of FTN95? |
|
Back to top |
|
 |
Brad
Joined: 17 Oct 2013 Posts: 8
|
Posted: Thu Oct 17, 2013 7:49 pm Post subject: |
|
|
I'm using version 5.4.0.0 (I downloaded it a week ago)
-Brad |
|
Back to top |
|
 |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Thu Oct 17, 2013 8:52 pm Post subject: |
|
|
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. _________________ Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl |
|
Back to top |
|
 |
Brad
Joined: 17 Oct 2013 Posts: 8
|
Posted: Thu Oct 17, 2013 9:29 pm Post subject: |
|
|
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 |
|
Back to top |
|
 |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Thu Oct 17, 2013 9:33 pm Post subject: |
|
|
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. _________________ Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl |
|
Back to top |
|
 |
Brad
Joined: 17 Oct 2013 Posts: 8
|
Posted: Thu Oct 17, 2013 9:44 pm Post subject: |
|
|
That worked. Compiler is updated, and the exception has gone away. Thanks so much!
-Brad |
|
Back to top |
|
 |
davidb
Joined: 17 Jul 2009 Posts: 560 Location: UK
|
Posted: Thu Oct 17, 2013 9:47 pm Post subject: |
|
|
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). _________________ Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl |
|
Back to top |
|
 |
|