How to unload all the resources of WMP?
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
How to unload all the resources of WMP?

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



Joined: 06 Apr 2005
Posts: 4

Posted: Sun Dec 25, 2005 8:55 am    Post subject: How to unload all the resources of WMP? Reply with quote

The following is my codes list:

HRESULT hr = CoCreateInstance(__uuidof(WindowsMediaPlayer),
0, CLSCTX_INPROC_SERVER,__uuidof(IWMPCore), (VOID**)&m_pCore);

hr = m_pCore->get_cdromCollection(&pCdromColl);
hr = pCdromColl->getByDriveSpecifier(temDrv, &pCdrom);
hr = pCdrom->get_Playlist(&pList);
hr = pList->Release();
hr = pCdrom->Release();
hr = pCdromColl->Release();

hr = m_pCore->Release();
while(hr>0)
hr = m_pCore->Release();
CoUninitialize();


My trouble is why after I release all the interfaces and call CoUninitialize()(before close my application), the memory can't be released and the file CurrentDatabase_219.wmdb can't be deleted.
Is there any way to release the memory and the file CurrentDatabase_219.wmdb? or Is it normal for media player sdk?

Hope somebody can help me. Thanks a lot.

Back to top
View user's profile Send private message
 
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