Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. "Protection error - Debugger Detected" when using MediaElement

"Protection error - Debugger Detected" when using MediaElement

Scheduled Pinned Locked Moved WPF
helpcsharpwpfdata-structuresdebugging
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dave Midgley
    wrote on last edited by
    #1

    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

    V 1 Reply Last reply
    0
    • D Dave Midgley

      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

      V Offline
      V Offline
      Vimalsoft Pty Ltd
      wrote on last edited by
      #2

      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/

      D 1 Reply Last reply
      0
      • V Vimalsoft Pty Ltd

        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/

        D Offline
        D Offline
        Dave Midgley
        wrote on last edited by
        #3

        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

        D 1 Reply Last reply
        0
        • D Dave Midgley

          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

          D Offline
          D Offline
          Dave Midgley
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups