I'm getting an error when trying to pass a safearray from CVF to VB .NET via COM Interop (Scenario 1). The COM interface was built using the Fortran Module Wizard and the code had been tested in CVF 6.1A and 6.6B. I can pass a string from CVF to VB .NET (Scenario 2), and I can use VB 6.0 to pass a safearray to VB .NET (Scenario 3). I've attached the files from scenario 1. Any help would be greatly appreciated.
A bug was discovered passing safearray from fortran to VB .NET dll through COM Interop - does not work:
VB .NET part of testing passing 1-dimensional safearray (ADOTestLite.dll): ADOTestLite.zip
CVF version 6.1.A part of testing passing 1-dimensional safearray (testcom.exe): testcom.zip
Passing string from fortran to VB .NET dll through COM Interop works:
VB .NET part of testing passing string (ADOTestLite2.dll): ADOTestLite2.zip