MATLAB: Does the HDF5READ function crash if it is called more than once in MATLAB 7.0 (R14)

assertionbridge.dllh5hdf5readMATLAB

If I run the following code more than once, MATLAB 7.0 (R14) returns an assertion in bridge.dll.
result = test1('test1.h5');
result = test1('test1.h5');
where test1.m has the following code
function result=test(filename)
a = hdf5.h5enum();
defineEnum(a,{'NO','YES'},uint8([0,1]));
setData(a,uint8([0]));
setName(a,'toto');
hdf5write(filename,'/data0',a);
result=hdf5read(filename,'/data0');
end

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
We have verified this issue as a bug in the HDF5READ function in MATLAB 7.0 (R14).
There are currently no known workarounds.