473,503 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to dispose MediaPlayer object?


Hello,

How do I explictly destruct a MediaPlayer object?

The compiler complained about overriding Finalize.
MediaPlayer does not implement IDisposable.

Any suggestions?

Thanks,
William Johnston

Mar 14 '08 #1
3 2947
On Mar 14, 2:13 pm, "William Johnston" <willi...@tenbase2.comwrote:
The compiler complained about overriding Finalize.
MediaPlayer does not implement IDisposable.
What was it's complaint, exactly?
Mar 14 '08 #2
If it is not implimenting IDisposable, then just let it go, as in objMP =
null.

"William Johnston" wrote:
>
Hello,

How do I explictly destruct a MediaPlayer object?

The compiler complained about overriding Finalize.
MediaPlayer does not implement IDisposable.

Any suggestions?

Thanks,
William Johnston

Mar 15 '08 #3
"William Johnston" <wi******@tenbase2.comwrote in message
news:12*************@news.newsville.com...
>
Hello,

How do I explictly destruct a MediaPlayer object?

The compiler complained about overriding Finalize.
MediaPlayer does not implement IDisposable.

Any suggestions?

Thanks,
William Johnston

MediaPlayer is a COM object, so you have to call Marshal.ReleaseComObject
when you want to "release" it's instance.

Willy.

Mar 15 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1438
by: DotNetMania | last post by:
hi.. i have some questions about media player article on codeproject website...... http://www.codeproject.com/cs/media/directshowmediaplayer.asp?df=100&forumid=4399&select=820191#xx793428xx ...
0
1257
by: Christian Steck | last post by:
Hello all, sorry about my english, i don´t speak english very well, but i try it ;-) at the time i write my own ui for the mediaplayer 10 and i have a problem with changing the visualization...
0
1711
by: Nonee | last post by:
Hello- I have a form with the mediaplayer referenced to play mp3's and avi's and I believe that is what is causing the problem. I am not sure, but I am hoping. Anyway, I "published" the vb.net...
1
1393
by: Stephen | last post by:
Here is my issue. I have a <asp:listbox control that is populated with movie titles and url for the media file from a database. No problem. No what I want is the OnSelectedIndexChanged event...
2
1853
by: Sagaert Johan | last post by:
Hi I have 2 audio cards and want my first mediaplayer object to play through soundcard 1 and the other object on card 2. I can't find any properties to set, so i fear this will not be...
7
3377
by: xhunter | last post by:
ok here is my problem, I am trying to change the source file of the mediplayer using javascript, my script works perfectly in "Internet Explorer", but no matter what I do, it doesn't work in...
1
3153
by: William Johnston | last post by:
Hi, I modified a thumbnail creation app and get black images since the first second is black as well. My questions are: 1. How do I set the MediaPlayer.Clock property to start screen capture...
2
241
by: William Johnston | last post by:
0
7204
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.