Closed ChrisBrandhorst closed 13 years ago
I don't really see how the collection could miss the track-pointer unless it was mutated somewhere, are you able to debug it to see if the track-pointer is actually added to the dict?
Fixed in my branch (see pull request).
The Track that was disposed was not a Track, but a PlaylistTrack. Since PlaylistTrackWrapper did not have its own OnDispose method, the TrackWrapper.OnDisposed was used, resulting in a call to Track.Delete (which of course failed, since PlaylistTracks are stored in a seperate Dictionary).
For this to work, I needed to add public get properties Position and Playlist to PlaylistTrack.
Error:
Steps to reproduce:
Somehow the error does not occur when I reference the .dll instead of the project.
Fix: