"Protection error - Debugger Detected" when using MediaElement
-
I have just started using VS2010 and have written the tiniest possible WPF program using a MediaElement, with an openFileDialog to load a Uri filename into the Source property of the MediaElement. It works fine with a .WMV file, but any other sort of file (.MPG, .AVI, even .JPG) causes a message to come up "Debugger detected - please close it down and restart". My research so far indicates that it is some sort of clash between video codecs, the most common theory being something to do with Nero 6/7 and the DivX codec. I do have Nero 6 installed, but I've checked in Control Panel | Sounds and Audio Devices | Video Codecs, and although I have a whole list Video Compression Codecs, none is called DivX or anything with Nero in the name. I could uninstall Nero 6, but I do use it, and it seems a bit drastic for what must be basically a bug somewhere that needs fixing. I have also downloaded GraphEdit, which seems to be the diagnostic tool of choice for this problem, but not being an expert in video codecs I haven't the faintest idea what to do with it now that I've got it. (I tried Graph | Insert Filters, but there are a million of them to choose from!) I am running XP pro, and my program is in C# under VS2010. I would really appreciate some help. (NB This problem has obviously been around for a while - I'm finding posts about it from as early as 2005 - but no solutions!)
Dave
-
I have just started using VS2010 and have written the tiniest possible WPF program using a MediaElement, with an openFileDialog to load a Uri filename into the Source property of the MediaElement. It works fine with a .WMV file, but any other sort of file (.MPG, .AVI, even .JPG) causes a message to come up "Debugger detected - please close it down and restart". My research so far indicates that it is some sort of clash between video codecs, the most common theory being something to do with Nero 6/7 and the DivX codec. I do have Nero 6 installed, but I've checked in Control Panel | Sounds and Audio Devices | Video Codecs, and although I have a whole list Video Compression Codecs, none is called DivX or anything with Nero in the name. I could uninstall Nero 6, but I do use it, and it seems a bit drastic for what must be basically a bug somewhere that needs fixing. I have also downloaded GraphEdit, which seems to be the diagnostic tool of choice for this problem, but not being an expert in video codecs I haven't the faintest idea what to do with it now that I've got it. (I tried Graph | Insert Filters, but there are a million of them to choose from!) I am running XP pro, and my program is in C# under VS2010. I would really appreciate some help. (NB This problem has obviously been around for a while - I'm finding posts about it from as early as 2005 - but no solutions!)
Dave
Those video formats are not supported in Silverlight
Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
-
Those video formats are not supported in Silverlight
Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
Sorry, in which bit of my post did I mention Silverlight? I'm using WPF, and anyway this is obviously not a problem of what formats are supported - and if you read the documentation they quite clearly ARE supported.
Dave
-
Sorry, in which bit of my post did I mention Silverlight? I'm using WPF, and anyway this is obviously not a problem of what formats are supported - and if you read the documentation they quite clearly ARE supported.
Dave
For the benefit of anyone reading this, after much searching I did eventually find the solution. It does seen to be a problem caused by Nero (anyone who wants a more technical discussion might like to look at my thread here[^], which was mostly over my head). I finally found the solution here[^], which was to rename c:\Program Files\Common Files\Ahead\DSFilter\NeVideo.ax to something else. This fixed it immediately, didn't even need a reboot. I don;t know whether this classes as a "bug" or a "feature" in Nero 6, or whether it has been fixed in later versions. By all accounts it only affects programs when they are being debugged, so shouldn't be a problem for the released version. Hope this helps someone else.
Dave