2
0
mirror of https://github.com/HDFGroup/hdf5.git synced 2025-04-24 17:51:25 +08:00

[svn-r11891] Purpose: Small bug fix

Description: h5_group example didn't work on VMS; it turned out
             that a group was not closed and since the default
             file close degree is "weak", file was not closed either.
             When program attempted to open the same file, system reported
             an error since the file was "locked by another user".
             UNIX systems apperently do not care and open the same file
             without any problem.

Solution: Added H5Gclose calls.

Platforms tested: VMS server and heping

Misc. update:
This commit is contained in:
Elena Pourmal 2006-01-25 11:53:14 -05:00
parent 6cf7a8fe7d
commit 25f2ebda39

@ -93,6 +93,7 @@ main(void)
H5Sclose(dataspace);
H5Dclose(dataset);
H5Pclose(plist);
H5Gclose(grp);
H5Fclose(file);
/*
@ -158,7 +159,8 @@ main(void)
* Close the file.
*/
status = H5Fclose(file);
H5Gclose(grp);
H5Fclose(file);
return 0;
}