replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - No .NET method matches this call
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 

No .NET method matches this call

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



Joined: 30 Mar 2015
Posts: 2
Location: M�nchen

PostPosted: Tue May 19, 2015 8:05 pm    Post subject: No .NET method matches this call Reply with quote

Hi!

I'm evaluating if it is possible to easily integrate our existing fortran code into c# application using your compiler. While trying some simple examples I experienced two blocker issues and a minor one.

I run Visual Studio 2013 Update 4, Silverfrost compiler 2.0.0.0.

I put an example of my project here: https://github.com/jezzarax/FtnIntegration

As a simple assessment project I'm trying to create a fortran console application with a backing c# library with a number of simple static methods that use standard .NET classes (nothing more complex than Console.WriteLine and some array processing).

I successfully managed to call simple Console.ReadLine wrapper from inside the fortran code. However when I invoked the same function from inside a loop in fortran code I got an error "error 1119: No .NET method matches this call". Even trying to put the same line after the loop gave me the same message. Check the example file \FtnIntegration\FortranCore\FreeFormat1.f95 at lines 12 (worked fine), 21,26,39 (gave the error message)

I also implemented a simple c# function that accepts a number and prints it to the console. It worked from the beginning, but when I put it inside/after the loop it made compilation process crash with screenshots I put at https://github.com/jezzarax/FtnIntegration/tree/master/IssueScreenshots.

I tried to change tarted architecture between x86 and AnyCPU, but no difference.

I also got a minor issue during compilation, for some reason I need first to invoke a compilation of .NET project (despite of configured build order) and when I compile the fortran project, I get the resulting binary in project root, not in /bin/Debug or /bin/Release, but the dependent .NET library is put inside /bin/Debug. Did I configured something wrong in the project?

Thanks in advance!

Edit: added version numbers.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue May 19, 2015 10:11 pm    Post subject: Reply with quote

Which version of FTN95 are you using? I suggest that you use the latest version and start with some of the supplied sample programs.
Back to top
View user's profile Send private message AIM Address
alexey.kuntsevich



Joined: 30 Mar 2015
Posts: 2
Location: M�nchen

PostPosted: Tue May 19, 2015 11:08 pm    Post subject: Reply with quote

Hi! Sorry, the version I specified was from the Visual studio dialog. My actual compiler version is

Code:
    Silverfrost FTN95/.NET Copyright (C) 1993-2014 Silverfrost Ltd
    ---------------------------------------------------------------

        Version:          7.10.0
        Built:            Sun Apr 27 11:55:38 2014

        Operating System: Microsoft .NET on Windows NT  CPU:              Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz Model 10 Step 9
        CPU Features:     MMX, SSE, SSE2, x86-64
        Status:           Personal Edition



I see the post in the news that version 7.20 was released, but download link on the page http://silverfrost.com/32/ftn95/ftn95_personal_edition.aspx leads to the version 7.10 download.

I was able to successfully execute code examples from the documentations on .NET interop.
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