Raw pointers to the internal SwigPtr struct are now stored in the MATLAB proxy classes. To make this a bit safer I propose to add one more field containing its own address. This field will be set to zero before freeing memory. This can be used as a consistency check giving less sever error messages when memory is corrupted (error instead of segfault).
Raw pointers to the internal
SwigPtr
struct are now stored in the MATLAB proxy classes. To make this a bit safer I propose to add one more field containing its own address. This field will be set to zero before freeing memory. This can be used as a consistency check giving less sever error messages when memory is corrupted (error instead of segfault).