1 message in net.java.dev.jna.usersCallbacks not working at all
FromSent OnAttachments
Daniel HorowitzJun 18, 2007 12:26 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:Callbacks not working at allActions...
From:Daniel Horowitz (dani@gmail.com)
Date:Jun 18, 2007 12:26:56 pm
List:net.java.dev.jna.users

My DLL is a message pump that consumes messages by invoking callbacks. My end goal is to have the callbacks be java functions but I am not there yet. Instead, I have the callbacks as C functions in the dll that just print to console. This works fine in a pure c environment. In JNA, I am able to load my dll, but the C callbacks dont work at all. Instead, the DllMain function gets invoked repeatedly.

My questions is, given a message pump scenario, where the C dll has a main loop in a thread that waits for events, would JNA work? Does JNA keep the dll around or is it destroying and reloading it (explaining why DllMain gets called over and over).

Thanks, Dan H