I'm trying to read a file that contains a variable which is int8. I get the following error message:
System.InvalidCastException: Unable to cast object of type 'csmatio.types.MLInt8' to type 'csmatio.types.MLNumericArray`1[System.Byte]'
at csmatio.io.MatFileReader.ReadMatrix(Stream buf, Boolean isRoot)
at csmatio.io.MatFileReader.ReadData(Stream buf)
at csmatio.io.MatFileReader.ReadData(Stream buf)
at csmatio.io.MatFileReader..ctor(String fileName, MatFileFilter filter)
at csmatio.io.MatFileReader..ctor(String fileName)
It's working now. We were obviously using some old version before the r12-fix.
I compiled r13, and thought that I tested with it too, but I forgot to place the new .dll in the right directory...
Regards,
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to read a file that contains a variable which is int8. I get the following error message:
System.InvalidCastException: Unable to cast object of type 'csmatio.types.MLInt8' to type 'csmatio.types.MLNumericArray`1[System.Byte]'
at csmatio.io.MatFileReader.ReadMatrix(Stream buf, Boolean isRoot)
at csmatio.io.MatFileReader.ReadData(Stream buf)
at csmatio.io.MatFileReader.ReadData(Stream buf)
at csmatio.io.MatFileReader..ctor(String fileName, MatFileFilter filter)
at csmatio.io.MatFileReader..ctor(String fileName)
The file that causes the error can be downloaded from here:
https://dl.dropboxusercontent.com/u/675216/HZV-24-7077-BCH.mat
Regards,
Martin
Which revision are you using? I hoped that at least all the integer stuff would work since revision 12.
Reading your file with the r13 demo application and csmatio.dll I can see no errors:
(Tested with Windows 7/64 and Visual Studio 2013)
Thanks!
It's working now. We were obviously using some old version before the r12-fix.
I compiled r13, and thought that I tested with it too, but I forgot to place the new .dll in the right directory...
Regards,
Martin