add signed assembly builds
Would be nice to hear from you as you are making progress. I added ticket [#10] for this issue.
add signed assembly builds
add 64bit build
I don't know anything 'bout Enterprise Architect. But I googled your error message and it says "in most of cases, the reason is the lack of signing". You should try to build the DLL with signing, also watchout for 32 vs 64 bit assembly builds. Here are two links: https://stackoverflow.com/questions/290980/error-a-strongly-named-assembly-is-required https://medium.com/@ShaoWenbinSaleh/fix-error-a-strongly-named-assembly-is-required-in-visual-studio-9cad3e7327dd HTH, Tobias
I don't know anything 'bout Enterprise Architect. But I googled your error message and it says "in most of cases, the reason is the lack of signing". You should try to build the DLL with signing, also watchout for 32 vs 64 bit assembly builds. Here are two links: * https://stackoverflow.com/questions/290980/error-a-strongly-named-assembly-is-required * https://medium.com/@ShaoWenbinSaleh/fix-error-a-strongly-named-assembly-is-required-in-visual-studio-9cad3e7327dd HTH, Tobias
Thank your for your feedback! In the meantime I managed to build and debug the project with SharpDevelop. I think I found the bug on line 361 in MatFileReader.cs. This padding calculation went wrong for the matlab structure in your code example (having only one field and this only field having a short name): // padding after field names int padding = (tag.Size % 8) != 0 ? 8 - tag.Size % 8 : 0; I commited a fix to the SVN trunk. I would be happy if you could check if that corrects the problem on your...
Fixed a bug with short structure field names (max. length less than 4 characters) that caused a crash in MatFileReader. Thanks to Marcus W for pointing this out.
Unfortunately I can't help with debugging at the moment, I have not even a suitable installation of Visual Studio at hand. The mat file format spec (the older versions that csmatio supports) can be found here: https://www.mathworks.com/help/pdf_doc/matlab/matfile_format.pdf
Hi Marcus, there might be a bug somewhere. Are you able to step into the csmatio source code with a debugger?
In short: No it's not. The way the library works is "read only" from existing mat files. Writing to existing mat files would require a different approach. I'm sorry, but at the moment there are no plans for further development of the library.
Hi folks, this is to announce that I received a patch for reading big endian mat files with csmatio. I created a new branch for this in the svn repository. Thank you very much Desmond Lun for sharing your code with us.
Initial commit for bigendian mat files. At the time only reading is supported.
create new branch "bigendian" from rev.19
I think there is a misunderstanding. On 2017-11-07 I uploaded a new release version of csmatio. In this version I added a public Property "Keys" to the class MLStructure. Use this new version. You do not need to add this public property anymore because it is already there. You just can start using this new property.
A question only out of curiosity: You already know the 4 field names inside your MOVEFPSO struct object. Why do you want to read the names you already know?
1st Error: Remove the line "private MLStructure<string> _keys;". It makes no sense. 2nd Error: Use latest csmatio.dll: https://sourceforge.net/projects/csmatio/files/csmatio.rev19.zip/
Use latest csmatio.dll: https://sourceforge.net/projects/csmatio/files/csmatio.rev19.zip Remove the line "private MLStructure<string> _keys;"
Hi Tobias ! I am thankful about your help to me but i cant add a public property "Keys" for the MLStructure i am getting a error that says "The type not geneneric "MLStructure" can't be used like as type arguments" What is this ? And without declaring this i get a error in mlStruct.Keys this error says like i don't have the property Keys in mlStruct ! Can you help me ? As I told you I really need this for a project in my intership Sorry for the bad english i am from Brazil ! Thanks ! using System;...
I just created a new release that contains this property. Thank you for pointing that out.
Usage Examples
Home
- CSMatIOTest.csproj: removed app.config reference
- add MLStructure.Keys property
The struct keys are held in MLStructure in a list: private List<string> _keys; Just add a public property "Keys" for this list and you should be able to get the names.
Hi Ben, there was a similar discussion two years ago, see Ticket [#4]. I assume that...
Hi Ben, there was a similar discussion two years, see Ticket [#4]. I assume that...
The spec is here: https://www.mathworks.com/help/pdf_doc/matlab/matfile_format.p...
The V4 format is much easier than the latter fomats and straight forward to read...
Read the version 4 mat file with Matlab, then save it as version 6 or 7 mat file....
I would try to avoid saving the same file again and again. I think the most simple...
I would try to avoid saving the same file again and again. I think the most simple...
I didn't notice these fork before. I also see that there is another one under https://github.com/mswillia/CSMatIO....
You could atttach a unified diff here and I will patch the files and provide a new...
I'd be glad to provide your DLL to the community in the "Files" section. Please add...
Hey thanks for this thread and the library. I just built a x64 version for .NET 4.6...
Thank you for sharing this idea!
Reading your file with the r13 demo application and csmatio.dll I can see no errors:...
Which revision are you using? I hoped that at least all the integer stuff would work...
What is the value of your variable "FileData"? Which key string values are in your...
In the past several csmatio users had problems with zlib decompress, see [2111c6f9],...
In the past several csmatio users had problems with zlib decompress, see [2111c6f9],...
Regarding your topic (empty struct members) I assume there is a bug or shortcoming...
Regarding your topic (empty struct members) I assume there is a bug or shortcoming...
(Glad to see that sf.net is up and running again.) I assume there is a bug or shortcoming...
Where does the exception occur: (a) when you try create your "empty" double or (b)...
Where does the exception occur: (a) when you try create your "empty" double or (b)...
I never tried that before. Just try it yourself and tell us your results.
Usage Examples
Usage Examples
I've added an example for creating a 2D double array to the wiki page, see [Usage...
Usage Examples
Thanks for sharing!
In general I would suggest using a Matlab struct array for storing DataTable values....
Hi Daniel, thanks for joining the forum! csmatio is a port of JMatIO (https://sf.net/p/jmatio/)....
I just commited [r13], updating the project to VS2013 and making it possible to avoid...
I cleaned up some code comments today, see [r11].
I committed [r13] today which eliminates the need of zlib.net.dll if you have .NET...
I committed [r13] today which eliminates the need of zlib.net.dll if you have .NET...
I merged this very useful code into the trunk version, see [r13]. There are two possibilities...
I changed a lot of lines in the type-dependent code, see [r11]. I fixed some bugs...
support all data types
forgot to commit some changes
FIXED sf ticket [#2]: "support all data types"
support for MLEmptyArray when saving mat file
It seems to me that MLEmptyArray wasn't designed to be used that way so I won't consider...
MatFileReader.MatFileReader(string, MatFileFilter) does not close file on exception
Got some time updating the sf project at last, see revision [r10].
Wrong values read from .mat-file
Got some time updating the sf project at last, see revision [r10].
- FIX: removed "static" qualifier from MLNumeri...
Steve, there is a ticket regarding memory issues, see [#4]. Please check if your...
Hi Mustafa, thank you for your code! I will look over it asap. I don't know how many...
Hi Mustafa, thank you for your code! I will look over it asap. I don't know how many...
If someone is willing to port this (or other) feature from JMatIO to csmatio and...
I didnt use csmatio with WPF before. Maybe you could post a ZIP archive of a minimal...
What is your execution environment? If its ASP.NET you may have a look here: http://lmgtfy.com/?q=%22Cannot+access+a+closed+file%22...
MATLAB 7.3 MAT file format is not supported by csmatio. One possibility is to save...
MATLAB 7.3 MAT file format is not supported by csmatio. One possibility is to save...
Maybe you could try to reproduce the problem with a file containing nonsense data?...
No I didn't test other zlib libraries. You may have a look at JMatIO to see if unzipping...
I don't know if the ZLIB.NET v1.10 source code is available as download. But you...
MatFileReader.MatFileReader(string, MatFileFilter) does not close file on exception
I just checked the source code of JMatIO which is the Java project that CSMatIO was...
So give it a try...
I must admit I didn't gave a thought on the question if csmatio was thread-safe until...
Sorry Hans I wasnt able to reconstruct your problem: First I read the attched file...
Sorry Hans I wasnt able to reconstruct your problem: First I read your file with...
Its easier than you think: string id = "myID"; MLStructure structArray = new MLStructure(id,...
Usage Examples
Usage Examples
Appending to an existing matfile is not possible with the current version of csmatio....
Appending to an existing matfile is not possible with the current version of csmatio....
I've got an update of zlib.net.dll from ComponentAce today. I committed rev.09 that...
zlib inflate broken?
Wrote a bug report to ComponentAce support today .
Wrote a bug report today to ComponentAce support.
Got a new zlib.net.dll from ComponentAce support today. Thanks a lot, guys! New version...