Two Problems: Playlist Editing and Memory Leakage
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Two Problems: Playlist Editing and Memory Leakage

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
qlawson
Guest





Posted: Mon Sep 27, 2004 8:08 am    Post subject: Two Problems: Playlist Editing and Memory Leakage Reply with quote

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

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB