4 messages in net.java.dev.jna.usersRe: [jna-users] Getting big string fr...
FromSent OnAttachments
mark...@dlr.deMar 30, 2009 5:53 am 
Timothy WallMar 30, 2009 6:05 am 
mark...@dlr.deMay 4, 2009 1:54 pm.dat
Timothy WallMay 4, 2009 2:30 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] Getting big string from c-libraryActions...
From:Timothy Wall (twal@dev.java.net)
Date:Mar 30, 2009 6:05:12 am
List:net.java.dev.jna.users

You'll have to be a little more specific about what you're doing. Reading a file into a Java String is not an atomic operation where a single implementation is obvious to everyone.

There's no reason you can't allocate that much memory via JNA.

On Mar 30, 2009, at 8:53 AM, <mark@dlr.de> <mark@dlr.de> wrote:

Hello,

we try to use a c-library in our java code, but when we try to get a big string from the c-library to a java string, then our java code crashes when importing more than 80 MB to a java string. But reading a simple ascii file with 100 MB to a java string works fine and fast. Is there a limitation in JNA about this?