I didnt use csmatio with WPF before. Maybe you could post a ZIP archive of a minimal example of your problem together with some error details, so that others could have a look at it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was just about to post you that you don't need to worry about that, further investigation showed that for some reason the files are closed before the call of MatFileWriter.
Thanks for your help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have an error when I try to use MatFileWriter.
I use : MatFileWriter mfw = new MatFileWriter("test.mat", mlList, false);
And all the time I have a "Cannot access a closed file" error.
I also tried to use a FileStream or a BinaryWriter, with the same effect.
Do you know why it can happen ?
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
http://www.shivasoft.in/blog/microsoft/net/cannot-access-a-closed-file-fileupload-in-asp-net/
No, it's in a WPF C# Project
I didnt use csmatio with WPF before. Maybe you could post a ZIP archive of a minimal example of your problem together with some error details, so that others could have a look at it?
I was just about to post you that you don't need to worry about that, further investigation showed that for some reason the files are closed before the call of MatFileWriter.
Thanks for your help