To ensure that MATLAB Proxy instances have destruction and copying semantics which work as expected with corresponding C++ Proxy instances, libmexclass.proxy.Proxy should inherit from the MATLAB handle class.
There is already an implementation of the delete method for libmexclass.proxy.Proxy, which is supposed to delete an associated C++ Proxy instance when a MATLAB Proxy instance is cleared from the MATLAB workspace. However, this is never being called since libmexclass.proxy.Proxy isn't inheriting from handle.
This is related to #29 and the crash on MATLAB shutdown that is described in that issue.
To ensure that MATLAB
Proxy
instances have destruction and copying semantics which work as expected with corresponding C++Proxy
instances,libmexclass.proxy.Proxy
should inherit from the MATLABhandle
class.There is already an implementation of the
delete
method forlibmexclass.proxy.Proxy
, which is supposed to delete an associated C++Proxy
instance when a MATLABProxy
instance is cleared from the MATLAB workspace. However, this is never being called sincelibmexclass.proxy.Proxy
isn't inheriting fromhandle
.This is related to #29 and the crash on MATLAB shutdown that is described in that issue.