Werner Benger wrote: > Hm, my impression here would be that it's faulty C++ code, because > > "abspath.substr(0, slash)" create a temporary string object to which > the c_str() member function refers, so char*name is actually referring > to a memory which is deleted after the substr() function call. Can you > try if this gives the same result:
Thanks, that indeed fixed the problem. Bad user code where undefined behavior almost appeared to work. - Daniel _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
