diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-02-20 20:45:44 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-02-20 20:45:44 (GMT) |
commit | 6f2de2c62cdc8a6def14fd06b0b25fae1d487d28 (patch) | |
tree | 2f0bef8ee7912db66bb0432a4d9be19c41cfe4ac /c++/src/H5File.cpp | |
parent | 322297809cfe9e7ca4ed39d62706f1d0301a0da1 (diff) | |
download | hdf5-6f2de2c62cdc8a6def14fd06b0b25fae1d487d28.zip hdf5-6f2de2c62cdc8a6def14fd06b0b25fae1d487d28.tar.gz hdf5-6f2de2c62cdc8a6def14fd06b0b25fae1d487d28.tar.bz2 |
[svn-r10050] Purpose: Fix bugzilla #241
Description:
Checked return value from C API for failure condition.
Added/Modified some comments appropriately.
Platforms tested:
Linux 2.4 (heping)
AIX 5.1 (copper) - tests passed but there were some old warnings about
duplicate symbols on std::string; I'll check on that.
Diffstat (limited to 'c++/src/H5File.cpp')
-rw-r--r-- | c++/src/H5File.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/c++/src/H5File.cpp b/c++/src/H5File.cpp index afc692b..3d650ed 100644 --- a/c++/src/H5File.cpp +++ b/c++/src/H5File.cpp @@ -181,11 +181,16 @@ bool H5File::isHdf5(const string& name ) // If this object has represented another HDF5 file, the previous // HDF5 file need to be closed first. // Programmer Binh-Minh Ribler - 2000 +// Modification +// Replaced resetIdComponent with decRefCount to use new ID +// reference counting mechanisms by Quincey Koziol, June 1, 2004 +// Note: This wrapper doesn't seem right regarding the 'id' and should +// be investigated. BMR - 2/20/2005 //-------------------------------------------------------------------------- void H5File::reOpen() { - // reset the identifier of this H5File - send 'this' in so that - // H5Fclose can be called appropriately + // If this object has a valid id, appropriately decrement reference + // counter and close the id. try { decRefCount(); } @@ -551,6 +556,9 @@ void H5File::throwException(const string func_name, const string msg) const // Function: H5File destructor ///\brief Properly terminates access to this file. // Programmer Binh-Minh Ribler - 2000 +// Modification +// Replaced resetIdComponent with decRefCount to use new ID +// reference counting mechanisms by Quincey Koziol, June 1, 2004 //-------------------------------------------------------------------------- H5File::~H5File() { |