Hi, new to HDF, and I found HDFql and got setup on that with the C# wrapper on Visual Studio 2013.
I just need to read some data from an existing HDF5 file and write some data values (repeatedly). I can open the file with HDFView and see the structure and types and data just fine.
The particular dataset I need to read has just a single string of length 68. It should look like this:
“169.254.168.81~Pyrocam_III_HR~2020579~Spiricon.Source.Pyrocam.IV.dll”
When I execute a SELECT command and then use the (sub)cursor to walk through the char array and concatenate the string, I sometimes get the correct string, but sometimes I get something like this:
“169.254.168.81~Pyrocam_III_HR~wµÈë©øã¡V2020579~Spiricon.Source.Pyrocam.IV.dll”
And sometimes it is really bad:
“169æœÇ.2íÃr\t5æœÇ4.168.8èœå1~eœppÝpäÊ\r6NP\b\byrÿÿÿøeœöÊ6”UocaÊ6mèœè_IÊ&6I‰ËIéœî_Ðp!\aHR~2Ê60„20Ê:6ÄçœØÊ965ëÃrøeœÞÊ76I79~SpÊX6„\viÊV6ric„úogæ”ëpÞßì™\fn.Soeœ– urce„ü.PyÊN6rÊd6ocÊr6ø\fa„ým.IV.dl„ûl”
One other odd one I got was this (just note the extra “DFql” on the end):
“169.254.168.81~Pyrocam_III_HR~2020579~Spiricon.Source.Pyrocam.IV.dllDFql”
Each time I run the same code on the same file, I get a different result. I also used HDFql.SubcursorGetCount(), and it returns 68 every time, regardless of the extra junk. I ruled out my parsing of the char array by doing it a few times in a row and comparing the results, which were always identical.(good or bad) Repeating the execution of the SELECT command, however, gives different results for each.
My command isn’t complex, just HDFql.Execute(“SELECT FROM …”)
After that I set the cursor to first and subcursor to first, and loop through the characters, moving the subcursor to next, until I hit a null.
Otherwise just use and close the file at the beginning and end.
Any ideas what could be causing these strange characters, and why is it randomly good or bad? And what to do about it?
Thank you.