- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am converting a Fortran dll created with cvf 6.6 to ivf 10.0.
This dll is called from VB.NET.
In VB.NET I pass the string byval followed immediately by the length of the stringpassed byref. This arrangement works fine with the fortran dll compiled with cvf or with ivf when I set the iface:cvf compiler option.
What would I change Fortran wise and VB.NET wise in order to not use the iface:cvf compiler option?
I tried just passing the strings byref with no string lengths and this "seems" to work but when I run my vb code in debug mode every time a fortran call returns I get a PInvokeStackImbalance error.
Debugging from the Fortran side goes without a hitch.
Each sub exposed in my Fortran dll uses:
!DEC$ ATTRIBUTES STDCALL, REFERENCE, DLLEXPORT ::
Do I need to drop the STDCALL?
Thanks,
Erik
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page