Read the next section in the link I posted yesterday. there is a section
on memory issues with JNI, global references etc 

http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/jniref.html 

regards
calvin

Zhihong Pan wrote:
> 
> Hi,
> 
> When I call my c function in java, I need to pass an jobjectArray. But the size of 
>the jobjectArray is deterined by my c function. for example, if I declare String 
>myarray=new Sring[10], then pass myarray to c function, in c function i use 
>SetObjectArrayElement to set array value, it works fine. But if I declare String 
>myarray=null, then pass it to c function, I will get the following error message:
> #
> # HotSpot Virtual Machine Error, Unexpected Signal 11
> # Please report this error at
> # http://java.sun.com/cgi-bin/bugreport.cgi
> #
> # Error ID: 4F533F4C494E55580E43505005BC
> #
> # Problematic Thread: prio=1 tid=0x804e500 nid=0x1060 runnable
> #
> 
> So, how to allocate jobjectArray memory in c. Could anybody help me ?
> 
> Thanks,
> 
> Zhihong Pan
> Chek, Inc
> Aborted
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to