replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Runtime exception when using module (windows 8)
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 

Runtime exception when using module (windows 8)

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



Joined: 17 Oct 2013
Posts: 8

PostPosted: Thu Oct 17, 2013 7:31 pm    Post subject: Runtime exception when using module (windows 8) Reply with quote

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


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

PostPosted: Thu Oct 17, 2013 7:44 pm    Post subject: Reply with quote

Are you using the latest release of FTN95?
Back to top
View user's profile Send private message AIM Address
Brad



Joined: 17 Oct 2013
Posts: 8

PostPosted: Thu Oct 17, 2013 7:49 pm    Post subject: Reply with quote

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

-Brad
Back to top
View user's profile Send private message
davidb



Joined: 17 Jul 2009
Posts: 560
Location: UK

PostPosted: Thu Oct 17, 2013 8:52 pm    Post subject: Reply with quote

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



Joined: 17 Oct 2013
Posts: 8

PostPosted: Thu Oct 17, 2013 9:29 pm    Post subject: Reply with quote

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



Joined: 17 Jul 2009
Posts: 560
Location: UK

PostPosted: Thu Oct 17, 2013 9:33 pm    Post subject: Reply with quote

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



Joined: 17 Oct 2013
Posts: 8

PostPosted: Thu Oct 17, 2013 9:44 pm    Post subject: Reply with quote

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

-Brad
Back to top
View user's profile Send private message
davidb



Joined: 17 Jul 2009
Posts: 560
Location: UK

PostPosted: Thu Oct 17, 2013 9:47 pm    Post subject: Reply with quote

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