Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29273 Discussions

Problem passing safearray from CVF to VB .NET

tim_coletta
Beginner
1,104 Views
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.

Thanks,
Tim Coletta
tim.coletta@mercer.com

Scenario 1:
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

Scenario 2:
Passing string from fortran to VB .NET dll through COM Interop works:
VB .NET part of testing passing string (ADOTestLite2.dll): ADOTestLite2.zip
CVF versio
0 Kudos
0 Replies
Reply