- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
i have a problem regarding this function in a fortran-dll:
If I run the code on an x86 environment everything works fine, if I run it on an x64 environment this function fails with an access violation.
I wonder if I have to change passing of the real(4) arrays on vb.net side?
Any clues?
Btw, where has the forum search gone?
Thanks in advance
FObermaier
i have a problem regarding this function in a fortran-dll:
function RowColGet( pMat, iRegion, iMax, faOrig, faDest, iCountOrig, iCountDest ) result(iRet)The function definition on VB.Net side is like this:
!DEC$ ATTRIBUTES ALIAS: 'V3MatRowColGet' :: RowColGet
!Specified in V3Mat.Def
!!DEC$ ATTRIBUTES DLLEXPORT, ALIAS: 'V3MatRowColGet' :: RowColGet
!DEC$ ATTRIBUTES VALUE :: iRegion, iMax
use ifcom
implicit none
type (T_MATRIX), pointer :: pMat
integer(4), intent(in) :: iRegion, iMax
real(4), intent(out) :: faOrig(0:iMax), faDest(0:iMax)
integer(4), intent(out) :: iCountOrig, iCountDest
integer(4) :: iRet
...
end function
Friend Declare Function V3MatRowColGet Lib "V3Mat.DLL" ( _The VB.Net part is compiled in Multi-Platform Mode.
ByRef hMatrix As IntPtr, ByVal iRegion As Integer, ByVal iMax As Integer, _
ByRef asngOrigFirstItem As Single, ByRef asngDestFirstItem As Single, _
ByRef iOrigCount As Integer, ByRef iDestCount As Integer) As Integer
If I run the code on an x86 environment everything works fine, if I run it on an x64 environment this function fails with an access violation.
I wonder if I have to change passing of the real(4) arrays on vb.net side?
Any clues?
Btw, where has the forum search gone?
Thanks in advance
FObermaier
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know VB at all but it sounds like it could be a mismatch between 4-byte and 8-byte things (pointers, handles etc)
Quoting - fobermaier
Btw, where has the forum search gone?
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Les Neilson
It's still there, on the first page, just above Steve's link to attaching files.
Thank you, found it.
FObermaier
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page