Re: Byte Buffer release and acquire doubts

2008-11-06 Thread Ashish
Nope you don't need to call release twice to free it. From basic analysis there seems to be a minor bug (may be) in the implementation Essentially, the release() function checks for refCount (Line 447) and checks for less than equal to 0. If the condition is true it throws an

Byte Buffer release and acquire doubts

2008-11-05 Thread Rajeshwari M
Hi All, I've written small program to test bytebuffer acquire and release methods. Program: import org.apache.mina.common.ByteBuffer; public class ByteBufferTest { public static void test() { try{ ByteBuffer b = ByteBuffer.allocate(4000); byte

Re: Byte Buffer release and acquire doubts

2008-11-05 Thread Emmanuel Lecharny
Rajeshwari M wrote: Hi All, Hi, I've written small program to test bytebuffer acquire and release methods. Program: import org.apache.mina.common.ByteBuffer; public class ByteBufferTest { public static void test() { try{ ByteBuffer b =