Login  Register

Re: DirectBuffer deallocation

Posted by gouessej on Jan 14, 2016; 12:10pm
URL: https://forum.jogamp.org/DirectBuffer-deallocation-tp4035990p4036017.html

elect wrote
Yep, I got it, but for my case right now is sufficient.
Therefore, you should have written that it works flawlessly for your case, it's an important piece of information. However, I advise you to debug the source code the method in JMonkeyEngine 3, it doesn't throw a NullPointerException but I'm not sure that it really disposes the native resources even for your case. The last time I looked at its code, half of the viewed buffers (returned by ByteBuffer.as*Buffer()) weren't treated correctly. I advise you to spend some time in reading the source code of OpenJDK involved in the management of direct buffers.

elect wrote
Julien, I don't know how you could intend that, but it wasn't a critic at all ;)

I remember I read once about a specific license type that basically allows you to use code also for commercial usage, but if you modify it, you have to release it, do you have a clou what this could be?
The GPL doesn't prevent you from using my source code "for commercial usage", it forces the developers to use the GPL in their own source code. You probably talk about the LGPL, it constraints the property of the GPL in the library itself. Personally, I prefer using the GPL because I consider that proprietary source code shouldn't even exist but it's another debate.
Julien Gouesse | Personal blog | Website