Jim,
A short program that demonstrates the issue would be helpful.
I just tried in C and couldn't make it to fail (probably haven't try hard :-)
#include "hdf5.h"
#define FILE "dset.h5"
int main() {
hid_t file_id, dataset_id, dataspace_id; /* identifiers */
hsize_t dims[2];
herr_t status;
/* Create the data space for the dataset. */
dims[0] = 4;
dims[1] = 6;
dataspace_id = H5Screate_simple(2, dims, NULL);
/* Create a new file using default properties. */
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/* Create the dataset. */
dataset_id = H5Dcreate2(file_id, "/dset", H5T_STD_I32BE, dataspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
status = H5Dclose(dataset_id);
/* Delete the dataset. */
H5Ldelete (file_id, "/dset", H5P_DEFAULT);
H5Fflush(file_id, H5F_SCOPE_GLOBAL);
dataset_id = H5Dcreate2(file_id, "/dset", H5T_STD_I32BE, dataspace_id,
H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
status = H5Dclose(dataset_id);
status = H5Sclose(dataspace_id);
status = H5Fclose(file_id);
}
Elena
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Apr 17, 2014, at 5:01 PM, "Rowe, Jim" <[email protected]> wrote:
> Hello- I am consistently getting access violations after doing the following:
>
> H5L.Delete(_H5FileId, dataSetPath);
> H5F.flush(_H5FileId, H5F.Scope.GLOBAL);
> // setup for create call omitted
> H5D.create( … ) //creates same structure dataset to same dataSetPath
>
> My intent is to completely clear out the dataset by removing and recreating
> it. Is there a preferred way to do this? Is H5L not the right call?
>
> Any help would be appreciated.
>
> Warm Regards,
> Jim
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org