Jump to content
Excelsior Forums

Work with Visual Fortran DLL?

Recommended Posts

I just tried hooking into a visual fortran DLL and got the following:

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x18964F11



It's an unmanaged fortran dll, the fortran function I'm trying to use is:

 integer*2 function setint(ix, value)

and my java code was:



           xFunction setInt = new xFunction("SundSize.DLL", "int setint(int, int)");

           setInt.invoke(new Argument(44), new Argument(1));


       } catch(Exception e)





Any ideas?

I'm hoping I can get this to work so I can acually purchase this.

Share this post

Link to post
Share on other sites

I'm not familiar with fortran syntax, but it seems that DLL expects a pointer as one of the parameters (maybe 'ix' or some hidden parameter?).

What does "integer*2" mean? Is it a simple return of single integer?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now