Loading Album art with TagLib sharp and then saving it to same/different file in C# causes memory error

后端 未结 3 658
余生分开走
余生分开走 2021-02-10 13:19

My application lists all MP3\'s in a directory and when the user selects a file it loads the tag info, including album art. The art is loaded into a variable to be used when the

3条回答
  •  终归单人心
    2021-02-10 13:55

    Your stream stuff should be in using blocks, which will dispose of your goods automagically and close them too. Not terribly important, but easier to manage.

    Your generic GDI+ error is likely because you are trying to perform an operation or call a method on a file for which the stream is already closed.

    Check it out...

提交回复
热议问题