summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2006-01-25 16:53:14 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2006-01-25 16:53:14 (GMT)
commit25f2ebda39e5a2932853668b88f821a5bd0faf32 (patch)
treee413bddd7d3b62c8539914538595bd21d3d28827 /examples
parent6cf7a8fe7db1ddd4d4dbfccd3306f1495fee2ae6 (diff)
downloadhdf5-25f2ebda39e5a2932853668b88f821a5bd0faf32.zip
hdf5-25f2ebda39e5a2932853668b88f821a5bd0faf32.tar.gz
hdf5-25f2ebda39e5a2932853668b88f821a5bd0faf32.tar.bz2
[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:
Diffstat (limited to 'examples')
-rw-r--r--examples/h5_group.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/h5_group.c b/examples/h5_group.c
index 7afe19b..870f34f 100644
--- a/examples/h5_group.c
+++ b/examples/h5_group.c
@@ -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;
}