netcdf-hdf mailing list is no longer active. The list archives are made available for historical reasons.
It doesn't crash for me. I put 'NULL' in for the last argument and it is fine. On Monday 08 August 2005 14:18, Quincey Koziol wrote: > Hi Ed, > Hmm, OK, I'll look into this later today and see if I can get a fix > into CVS for you. > > Quincey > > > As suggested in the ref manual I am using H5Gget_objinfo to test for > > the existence of an object in a HDF5 file. > > > > When I pass NULL as the last argument, I get a segmentation > > fault. When I pass in a valid hunk of memory, it works. > > > > I believe the docs say that I can pass a NULL here to test for object > > existence without caring about the contents of the H5G_stat_t > > struct... > > > > Here's the code that works: > > > > H5G_stat_t info; > > if (H5Gget_objinfo(grp->hdf_grpid, var->name, 1, &info) >= 0) > > replace_existing_var++; > > > > Sorry, I'm blazing through something here and don't have time to > > isolate this one in it's own program yet... > > > > Thanks! > > > > Ed > > > > -- > > Ed Hartnett -- ed@xxxxxxxxxxxxxxxx -- Robert E. McGrath National Center for Supercomputing Applications University of Illinois, Urbana-Champaign Champaign, Illinois 61820 (217)-333-6549 mcgrath@xxxxxxxxxxxxx