qlawson
Guest
|
Posted:
Mon Sep 27, 2004 8:08 am Post subject:
Two Problems: Playlist Editing and Memory Leakage |
|
|
Hi,
I am writing a VB6 application with the WindowsMediaPlayer component.
I have encounter a few problems so far.
First, whenever I use these playlist editing methods:
playlistCollection.newPlaylist
CurrentPlaylist.Clear
any currently playing media will stop playing. My workaround has been
to add a second WindowsMediaPlayer object for these specific tasks, so
that the first one won't be interupted. However, is this the
best/only method to prevent this behavior?
Second, I can't get WindowsMediaPlayer to remove old media files from
the memory buffer. Whenever a media file ends or stops and a new one
begins, the memory is not freed from the old media, yet more memory is
allocated for the new media. So, I eventually run out of memory.
Other than using Cacheman, I have found no real workaround for this.
Is there an effective way to prevent this behavior programatically?
Thank you for your help,
Quinton Lawson
|
|