H5Iregister_type fails with infinite loop, v1.10.4


#1

According to H5Iregister call to work, one needs to register a custom type with H5Iegister_type however when testing it, the library shuts down with with error message posted at the bottom. What am I doing wrong?

#include <iostream>
#include <hdf5.h>
herr_t my_free_func(void* ptr ){
	return 0;
}
int main(int argc, char **argv) {
	H5Iregister_type( 1, 1, my_free_func );
return 0;
}

result:

HDF5: infinite loop closing library
      L,T_top,P,P,FD,E,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I