I develop software to pay the bills although I enjoy crashing weddings, and mostly just golf. I am usually programming in java, c++, c#, and php. I was born with a terrible addiction to sarcasm. This blog is about anything and everything i have learned from trying to listen to music on my ipod and all the programs I have written to aide in my listening experience.

Hey,
looks like you have played with iTunes SDK quite a bit. I want to ask you a question about deleting tracks in the playlist using the sdk. Do you see anything wrong with this approach:
foreach(IITrack track in playlist.Tracks)
{
// some condition;
track.Delete();
}
It seems to work but from time to time I see track here and there not deleted in the playlist. Can it be that since deleting the track effects the Tracks collection?
If you know anything about this, your comments would be greatly appreciated.
when you delete a track from the playlist, if it is a user created playlist it does not delete that track from the actual library. To do that I think you have to get library playlist which is different than most user created playlists