Hi
the programming problem I'm dealing with right now can be broken down do allocating an array in Fortran, which was created in VB.NET. My code in VB.NET looks like this:
dim test(),testvar2 as double
n = fortran_function(test, ...)
testvar2=test(1)
And the Fortran function:
integer function fortran_function(test, ...)
REAL(KIND=8), INTENT(INOUT), ALLOCATABLE :: test(:)
allocate(test(1))
test(1)=...
...
end function fortran_function
Doing it that way does not allocate space for the array, but it crashes my VB.NET application with an ExecutionEngineException. My question is, how can I "outsource" the ReDim command that I'd usually use in VB.NET to the Fortran function (this is necessary since the array size is calculated there).
mamey