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. C#
  4. MDA ContestSwitchDeadlock

MDA ContestSwitchDeadlock

Scheduled Pinned Locked Moved C#
csharphelpquestion
6 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.
  • N Offline
    N Offline
    Nooie
    wrote on last edited by
    #1

    This is a repost as I didn't get a reponse to my last one :-( and I still can't get this thing to run through. Well I lie. It ran through fine once, but since then I've been getting this contextSwitchDeadlock issue, but I haven't modified the code! :doh: :confused: Anyone have any ideas? /TH Hi All, I'm slowing finding my way around C#. I have written an application that takes a directory, take each file in that directory and also each file in each subdirectory, and then trys to find any files with the same name (Trying to clear up all my duplicate photos ) SO I have written the code, and checked it and checked it again, it does not get caught in an infinite loop. But when I F6 the app it comes up with a ContextSwitchDeadlock MDA issue.

    N 1 Reply Last reply
    0
    • N Nooie

      This is a repost as I didn't get a reponse to my last one :-( and I still can't get this thing to run through. Well I lie. It ran through fine once, but since then I've been getting this contextSwitchDeadlock issue, but I haven't modified the code! :doh: :confused: Anyone have any ideas? /TH Hi All, I'm slowing finding my way around C#. I have written an application that takes a directory, take each file in that directory and also each file in each subdirectory, and then trys to find any files with the same name (Trying to clear up all my duplicate photos ) SO I have written the code, and checked it and checked it again, it does not get caught in an infinite loop. But when I F6 the app it comes up with a ContextSwitchDeadlock MDA issue.

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      My friend... Even though I've never faced a contextSwitchDeadlock, but I think that googling[^] is a very healthy practice.

      Regards:rose:

      N 1 Reply Last reply
      0
      • N Nader Elshehabi

        My friend... Even though I've never faced a contextSwitchDeadlock, but I think that googling[^] is a very healthy practice.

        Regards:rose:

        N Offline
        N Offline
        Nooie
        wrote on last edited by
        #3

        Hi Nader, I tried that. found something about setting it to "Full Trusted" which i tried, but that did not resolve it. Thanks for the help though!

        N N 2 Replies Last reply
        0
        • N Nooie

          Hi Nader, I tried that. found something about setting it to "Full Trusted" which i tried, but that did not resolve it. Thanks for the help though!

          N Offline
          N Offline
          Nooie
          wrote on last edited by
          #4

          I found this link so willtry this tonight Harriyott Blog[^] :-D

          1 Reply Last reply
          0
          • N Nooie

            Hi Nader, I tried that. found something about setting it to "Full Trusted" which i tried, but that did not resolve it. Thanks for the help though!

            N Offline
            N Offline
            Nader Elshehabi
            wrote on last edited by
            #5

            Though I don't like that solution, but here is a link to something that may help. Click here[^]. PS. If you are mulithreading, then getting this exceptions means that you've done something wrong, and ifnoring it isn't quite the best thing to do.

            Regards:rose:

            N 1 Reply Last reply
            0
            • N Nader Elshehabi

              Though I don't like that solution, but here is a link to something that may help. Click here[^]. PS. If you are mulithreading, then getting this exceptions means that you've done something wrong, and ifnoring it isn't quite the best thing to do.

              Regards:rose:

              N Offline
              N Offline
              Nooie
              wrote on last edited by
              #6

              LOL Great minds think a like :-D Its not threading its quite procedural, so this should suffice. I'll see if it blows up when I get it into production. Then it might be back to the drawing board. /TH

              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