Hi, 

I am trying to port a third party package for the Linux JDK and face
deallocation problems (~pointer is corrupted or freed more than once).

I have installed the latest package of the jdk 1.1.7 v1a with native
thread support.

The problem occurs systematically when a native method allocate some
space (malloc), invoke a java method and then free this space. It
looks like the Java VM already freed this space, though it does not
refer to any Java object.

So my questions: Is it safe/legal to do heap allocation inside a native
method?  How this interact with the Java garbage collector?


-- Georges


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

Reply via email to