Peter:

thanks for your reply. However, I'm still having problems attempting to implement.... E.g.:

int fapl_id = H5.H5Pcreate(HDF5Constants.H5P_FILE_ACCESS); //create a property list of type file access int increment = 1024; //block size of 1024 boolean backing_store = false; //do not write contents to disk when finished

            //set the core
int access_id = H5.H5Pset_fapl_core(fapl_id, increment, backing_store);


            String name = "should_not_exist.txt";
            int flags = HDF5Constants.H5P_DEFAULT;
            int create_id = HDF5Constants.H5P_DEFAULT;
            int file_id = H5.H5Fcreate(name, flags, create_id, access_id);

In the code above, the access_id is being returned as 0 -that makes me wonder if it is correct. Assuming that is correct, I get an error anyway when I attempt to call H5FCreate:

ncsa.hdf.hdf5lib.exceptions.HDF5LibraryException
HDF5-DIAG: Error detected in HDF5 (1.8.4-patch1) thread 0:
  #000: H5Edeprec.c line 182 in H5Eget_minor(): not a error message ID
    major: Invalid arguments to routine
    minor: Inappropriate type

Am I going about this the right way? Can you direct me to the C/C++ example you mentioned? (I tried to look for a /test directory and could not find it). Any help is greatly appreciated,

Nigel



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

Reply via email to