<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/10/3 Francesco Argese <span dir="ltr"><<a href="mailto:kekko84@gmail.com" target="_blank">kekko84@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div>Today I've investigated more and I have understood that it is not a problem with the push function but a problem with lacking deallocation of the buffer created (I have tried to comment the push function and the error remains there).<br>
</div></div></div></div></blockquote><div><br><div>I have resolved the problem adding the following statement at the end of the native function that use jbytearray.<br><br>(*env)->ReleaseByteArrayElements(env, frameData, frameDataPtr, 0 );<br>
<br>It seems that gabage collector is stopped until call to this function [1].<br><br></div>Francesco Argese<br><br>[1] <a href="http://stackoverflow.com/questions/6728616/how-to-read-a-bytearray-in-jni">http://stackoverflow.com/questions/6728616/how-to-read-a-bytearray-in-jni</a><br>
</div></div></div></div>