HDFGroup / vol-rest

HDF5 REST VOL Connector
Other
5 stars 8 forks source link

Closing File Causes Errors With Child Groups #20

Closed ron-kuhn closed 1 year ago

ron-kuhn commented 1 year ago

I am using H5::H5File to create a file, then create a group (called Images) under the root group that everything is created from. After this, I don't need access to the H5File object so it is deleted but the Images group is saved. If I create anything off the Images group after deleting the H5File object (closing the file), I receive errors from the vol-rest. This doesn't have any problem with the native (file-based) vol (the file doesn't close till all the opened objects from the file are closed). Workaround is to save the H5File object also. This workaround work for now until users delete my object before done with the children.

ron-kuhn commented 1 year ago

This is because all the RV_object_t objects contain a copy of the domain's (file's) RV_object_t. This is freed when the file is closed.

mattjala commented 1 year ago

Fixed by #30, which changes groups, datasets, and datatypes to copy the file's domain.