Hello, I'm developing a music player which is able to change the audio info (title, artist, etc) and I'm using taglib-sharp to that.
However, to save the editings, I need to release the audio file since the editing doesn't happen while the file is being used by another process. I tried doing that with both the codes
. But after doing this (each one separately or together), when myVlcControl will receive the MediaPath (
myVlcControl.Media = new PathMedia("song_path.mp3");
) I receive an error in this same line saying:
An unhandled exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in mscorlib.dll
Additional information: The given key was not present in the dictionary.
In short, I need to know how to release an audio file and, after, reopen it or open another file.
I'm a beginner and I have no idea what's going on and how to go around this problem.
Could someone help me? (and I would appreciate feedbacks about my english, is that possible?)