13 messages in net.java.dev.jna.usersCannot pass any data to native dll
FromSent OnAttachments
Daniel HorowitzJun 14, 2007 11:27 am 
Timothy WallJun 14, 2007 11:29 am 
Daniel HorowitzJun 14, 2007 11:31 am 
Daniel HorowitzJun 14, 2007 11:39 am 
Timothy WallJun 14, 2007 11:42 am 
Daniel HorowitzJun 14, 2007 11:52 am 
Timothy WallJun 14, 2007 11:53 am 
Timothy WallJun 14, 2007 12:03 pm 
Daniel HorowitzJun 14, 2007 12:13 pm 
Daniel HorowitzJun 14, 2007 12:22 pm 
Timothy WallJun 14, 2007 12:30 pm 
Daniel HorowitzJun 14, 2007 2:11 pm 
Timothy WallJun 14, 2007 2:23 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:Cannot pass any data to native dllActions...
From:Daniel Horowitz (dani@gmail.com)
Date:Jun 14, 2007 11:27:42 am
List:net.java.dev.jna.users

Hey,

I am able to invoke functions in my dll that do not take any arguments. But if the function takes arguments of any type, and I call the function, java crashes with the following message -

# # An unexpected error has been detected by Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x009dfa9c, pid=3616, tid=3192 # # Java VM: Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed mode) # Problematic frame: # C 0x009dfa9c

Here are my dll function definitions. all the functions work except subscribe.

#ifndef _TESTAPIB_H_ #define _TESTAPIB_H_

extern "C" __declspec(dllexport)int init(); extern "C" __declspec(dllexport)int destroy(); extern "C" __declspec(dllexport)int login(); extern "C" __declspec(dllexport)int logout(); extern "C" __declspec(dllexport)int subscribe(int foo);

#endif

Any direction would help

Thanks, Dan H