Problem to Solve
Java and CSharp's %delobject directive in SWIG doesn't work as expected, see: swig/swig#3333
This means that we must manually call .Released() on our objects as they are passed over the native library boundary in order to avoid memory management problems. However, the discussion in SWIG above outlines a solution to apply
Proposed Solution
Remove the explicit .Released() calls on objects as they are passed into methods marked as %delobject - for example, user_delete
Problem to Solve
Java and CSharp's
%delobjectdirective in SWIG doesn't work as expected, see: swig/swig#3333This means that we must manually call
.Released()on our objects as they are passed over the native library boundary in order to avoid memory management problems. However, the discussion in SWIG above outlines a solution to applyProposed Solution
Remove the explicit
.Released()calls on objects as they are passed into methods marked as%delobject- for example,user_delete