11 messages in net.java.dev.jna.usersRe: [jna-users] NativeLibrary Usage
FromSent OnAttachments
Christine GrudeckiJul 26, 2007 7:11 am 
Timothy WallJul 26, 2007 8:35 am 
Christine GrudeckiJul 26, 2007 12:52 pm 
Timothy WallJul 26, 2007 1:21 pm 
pzab...@poczta.onet.plJul 27, 2007 8:57 am 
Timothy WallJul 27, 2007 11:24 am 
Timothy WallJul 30, 2007 3:41 am 
Timothy WallJul 30, 2007 7:54 am 
Timothy WallJul 30, 2007 8:58 am 
Christine GrudeckiJul 30, 2007 9:24 am 
Timothy WallJul 30, 2007 10:49 am 
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] NativeLibrary UsageActions...
From:Timothy Wall (twal@dev.java.net)
Date:Jul 26, 2007 1:21:22 pm
List:net.java.dev.jna.users

On Jul 26, 2007, at 3:53 PM, Christine Grudecki wrote:

That sounds like it would work, but I can't figure out how to implement it because MyLibrary is an Interface. I thought maybe implementing Library from an abstract class, but I can't figure out how to make that work with the way JNA works.

Can you give an example of how that would look?

{ MyLibrary lib = (MyLibrary)Native.loadLibrary("mylib", MyLibrary.class); // do stuff with lib } // lib is now free to be GC'd, as is the NativeLibrary it uses