Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27355

VS 2010 AxWindowsMediaPlayer - How to ignore unhandled exceptions?

$
0
0
Hi all,

I have a AxWindowsMediaPlayer controls called "MyPlayer" and it works like a charm when it comes to loading a video and playing it. Even going to fullscreen automatically is working 100%.

But! There's always a but.

Whenever I click on one of the "Pause" or "Stop" buttons, it gives me an "unhandled exception has occured in your application" error and I can choose to continue or quit. If I select continue, it pauses or stops perfectly afterwards so I am wondering how I can just ignore this exception error.

Here is the detail of the error message:

"Unable to cast object of type 'System.EventArgs' to type 'System.ComponentModel.CancelEventArgs'."

Can somebody help ignore this error ?

Viewing all articles
Browse latest Browse all 27355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>