March 2017 archive

A C++ Smart Pointer wrapper for use with JNI

Introduction In this article, I'll propose a solution for managing native C++ resources from JNI using smart pointers. While Smart Pointers can't be useful from Java, because of the limits of the Java memory management, it may be required by the native library to maintain allocated resources through shared_ptr or unique_ptr, for example because classes …

Continue reading

Permanent link to this article: http://www.studiofuga.com/2017/03/10/a-c-smart-pointer-wrapper-for-use-with-jni/