Hi,

I have a an existing HDF5 for which I'd like to add new datasets, dataypes etc...

    I am fairly confident my basic code works because if I use

m_FileID = H5Fcreate(m_Filename.c_str(), H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);

the datasets (which I want to add) are there [but I don't want to create a new file]

    but if I use

        m_FileID = H5Fopen(m_Filename.c_str(), H5F_ACC_RDWR, H5P_DEFAULT);

    I get errors

Are there special flags/properties I must set to enable the creation of new datasets ? Which example code should I refer to for more detail ?

Cheers
=========================
create_hdf5_datasets START
HDF5-DIAG: Error detected in HDF5 (1.8.12) thread 140735244564832:
  #000: H5D.c line 170 in H5Dcreate2(): unable to create dataset
    major: Dataset
    minor: Unable to initialize object
#001: H5Dint.c line 439 in H5D__create_named(): unable to create and link to dataset
    major: Dataset
    minor: Unable to initialize object
#002: H5L.c line 1638 in H5L_link_object(): unable to create new link to object
    major: Links
    minor: Unable to initialize object
  #003: H5L.c line 1882 in H5L_create_real(): can't insert link
    major: Symbol table
    minor: Unable to insert object
#004: H5Gtraverse.c line 861 in H5G_traverse(): internal path traversal failed
    major: Symbol table
    minor: Object not found
#005: H5Gtraverse.c line 641 in H5G_traverse_real(): traversal operator failed
    major: Symbol table
    minor: Callback failed
  #006: H5L.c line 1674 in H5L_link_cb(): name already exists
    major: Symbol table
    minor: Object already exists
m_VoxelBoundingBoxesDataset = -1

Cheers

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

Reply via email to