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
>
>
"William Johnston" <williamj@tenba se2.comwrote in message
news:1205518419 _5022@news.news ville.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.Release ComObject
when you want to "release" it's instance.
Comment