2 messages in net.java.dev.jna.usersRe: [jna-users] Works in Linux but no...
FromSent OnAttachments
Timothy WallSep 10, 2007 2:33 pm 
Gregor B. RosenauerSep 11, 2007 2:42 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Works in Linux but not in WindowsActions...
From:Gregor B. Rosenauer (greg@gmail.com)
Date:Sep 11, 2007 2:42:16 pm
List:net.java.dev.jna.users

If it *is* a stdcall library, then its symbols will likely be in the form "func_name@NN", where "NN" is the size of its stack arguments.

Thanks a lot for the quick and helpful tip! I read about function name mangling but I did not have the necessary Windows tools installed - using the Windows Platform SDK's "Dependency Walker" I found out the "real" function names now it works! For some reason, some functions start with "_" but others do not...

So now I need to get the mapping right, which did not yet work out (tried different mappers before... will look into this), and then I got this after closing the library (the lib offers a "finish" function):

# # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0006f8ff, pid=820, tid=3592 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode) # Problematic frame: # C 0x0006f8ff # # An error report file with more information is saved as hs_err_pid820.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp #

Thanks again, Gregor