Re: How to delete direct Buffers?
Posted by
gouessej on
Nov 25, 2014; 1:59pm
URL: https://forum.jogamp.org/How-to-delete-direct-Buffers-tp4033631p4033633.html
Hi
You have to get the view of the direct float buffer. It's in sun.nio.ch.DirectBuffer.viewedBuffer in Java 1.6 and sun.nio.ch.DirectBuffer.attachment in Java 1.7 and later. Use the reflection API. This field contains a direct byte buffer used under the hood.
Edit.: I hope you use this class to create your buffers:
http://jogamp.org/deployment/jogamp-next/javadoc/gluegen/javadoc/com/jogamp/common/nio/Buffers.html