Reading through the other comments, this almost certainly should be an H5flush()