User`s guide

R2008a
18-46
Compatibility Considerations
Prior to this release, MATLAB contained Perl Version 5.005. Consult your Perl
documentation for details on the changes between Perl versions.
Rebuild MEX-Files Created on Linux Platforms
MATLAB V7.6 (R2008a) on Linux platforms is built with a compiler that utilizes glibc
Version 2.3.6.
Compatibility Considerations
To work with MATLAB V7.6 (R2008a), MEX-files compiled on a Linux platform must be
rebuilt.
Use mxDestroyArray to Release Memory for mxArray
The documentation for the mxSetCell, mxSetField, and mxSetFieldByNumber
functions in the MATLAB C and Fortran API incorrectly instructs customers to use
mxFree to release memory for any mxArray returned by mxGetCell, mxGetField, or
mxGetFieldByNumber.
Compatibility Considerations
The correct function to use is mxDestroyArray. Calling mxFree on an mxArray only frees
the array header, but does not actually free the data itself and can result in a memory
leak.
To help diagnose this problem, MATLAB issues a warning if calling mxFree on an
mxArray could cause memory corruption. In future versions of MATLAB, this condition
may result in a segmentation violation.
Do Not Use get or set Function to Manage Properties of Java Objects
If you want to read or update a property of a Sun Java object created in MATLAB
using the Java class constructor, do not use the MATLAB get or set functions on the
property. For example, if you create a Java object called javaObject that has a property
called PropertyName, the following commands may cause memory leaks and will be
deprecated in a future version of MATLAB: