One is when the
H5closefunction is used.
H5closecauses a general shutdown of the library: all data is written to disk, all identifiers are closed, and all memory used by the library is cleaned up.
Another exception occurs on parallel processing systems. Suppose on a parallel system an application has opened a file, a group in the file, and two datasets in the group. If the application uses the
H5Fclosefunction to close the file, the call will fail with an error. The open group and datasets must be closed before the file can be closed.
A third exception is when the file access property list includes the property H5F_CLOSE_STRONG. This property is specified when opening the file, and it closes all open objects when the file is closed with
H5Fclose. For more information, see the H5PsetH5P_fcloseSET_degreeFCLOSE_DEGREE function in the HDF5 Reference Manual.