Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

problem getting a media playlist (

The problem is that I have no playlists at the following location (default):
C:\Documents and Settings\...\My Music\My Playlists
and still playlistCollection.getAll.count returns '46', no matter how many lists are in this directory.
The first time the for-loop is taken I get the following error:
'The system cannot find the file specified.'
I never had this problem until I deleted some lists from the \My Playlists directory.
My questions:
1) how come that the count always returns '46'..?
2) why do I get this error.



For i = 0 To mPlayer.playlistCollection.getAll.count - 1
          Dim var As Object = Me.mPlayer.playlistCollection.getAll.Item(i)
            mPlayer.currentPlaylist = var
            If = "tempList" Then
Exit For

Any help on this would be welcome,

Wednesday, November 26, 2003

Maybe the issue is due to Media Player's database being out of sync with what's actually on disk. You say you "deleted some lists from the \My Playlists directory" -- well - does the Media Player database know about this? -- I think you should delete them fro the Media Player UI, that way they get removed from the database as well as the file system.

Duncan Smart
Thursday, November 27, 2003

*  Recent Topics

*  Fog Creek Home