I get the error: 'An unhandled exception of type 'System.InvalidProgramException' occurred in Ftn95.dll' 'Additional information: Common Language Runtime detected an invalid program.'
I have a C# code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
namespace CSharp
{
class Program
{
static void Main(string[] args)
{
Ftn95.Sub1();
Console.ReadLine();
}
}
}
where, in a FTN95 Application Extension, I have
subroutine Sub1 ()
implicit none
ASSEMBLY_INTERFACE (NAME='Sub1')
double precision A(3,3), B(3,3)
A = 1.d0
call Sub2 (A,B)
write(*,*) B
end subroutine
and
subroutine Sub2 (A,B)
implicit none
ASSEMBLY_INTERFACE (NAME='Sub2')
double precision A(:,:), B(:,:)
B = A
end subroutine
What is wrong? :?:
Config. Manager: Debug CSharp: x86 Ftn95: .NET