Menu

Error while trying to write a MAT file

Meg'
2014-06-20
2014-06-20
  • Meg'

    Meg' - 2014-06-20

    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 ?

     
  • Meg'

    Meg' - 2014-06-20

    No, it's in a WPF C# Project

     
  • Tobias

    Tobias - 2014-06-20

    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?

     
  • Meg'

    Meg' - 2014-06-20

    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

     

Log in to post a comment.