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. I am sorry if I am asking an abstract question; but I have a multithreaded question

I am sorry if I am asking an abstract question; but I have a multithreaded question

Scheduled Pinned Locked Moved C#
question
6 Posts 3 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.
  • S Offline
    S Offline
    sameerhanda
    wrote on last edited by
    #1

    There was an excellent article that someone wrote on relation to updating GUI from a seperate thread. This article related to setting a property called RaiseExceptionOfSomeKind = false. Very simple yet very effecient. I am sad to report that I am blanking out compeltely on that article. If someone has the foggiest idea as to what am I talking about please post a link. This is what happens when you give up drinking..amnesia. Thanks

    J H 2 Replies Last reply
    0
    • S sameerhanda

      There was an excellent article that someone wrote on relation to updating GUI from a seperate thread. This article related to setting a property called RaiseExceptionOfSomeKind = false. Very simple yet very effecient. I am sad to report that I am blanking out compeltely on that article. If someone has the foggiest idea as to what am I talking about please post a link. This is what happens when you give up drinking..amnesia. Thanks

      J Offline
      J Offline
      Jimmanuel
      wrote on last edited by
      #2

      Updating a Gui from a thread other than the one it was created on "often leads to unpredictable results" (MSDN[^]). See here[^] for the proper way to do so.

      S 1 Reply Last reply
      0
      • J Jimmanuel

        Updating a Gui from a thread other than the one it was created on "often leads to unpredictable results" (MSDN[^]). See here[^] for the proper way to do so.

        S Offline
        S Offline
        sameerhanda
        wrote on last edited by
        #3

        Found what I was looking for. It took a little while to do the right search. http://www.codeproject.com/KB/user-controls/AlternateMultithreadedGUI.aspx. The property I was looking for is CheckForIllegalThreadCalls = false. Back to drinking,

        1 Reply Last reply
        0
        • S sameerhanda

          There was an excellent article that someone wrote on relation to updating GUI from a seperate thread. This article related to setting a property called RaiseExceptionOfSomeKind = false. Very simple yet very effecient. I am sad to report that I am blanking out compeltely on that article. If someone has the foggiest idea as to what am I talking about please post a link. This is what happens when you give up drinking..amnesia. Thanks

          H Offline
          H Offline
          half life
          wrote on last edited by
          #4

          THRERE are two ways 1. the wrong way that microsoft allowed Set this property like: CheckForIllegalCrossThreadCalls = false; 2. the right way : create a delegate to the function that updates the GUI and a handler and use the invoke Method to wake the method see here : http://msdn2.microsoft.com/en-us/library/zyzhdc6b.aspx[^]

          Have Fun Never forget it

          S 1 Reply Last reply
          0
          • H half life

            THRERE are two ways 1. the wrong way that microsoft allowed Set this property like: CheckForIllegalCrossThreadCalls = false; 2. the right way : create a delegate to the function that updates the GUI and a handler and use the invoke Method to wake the method see here : http://msdn2.microsoft.com/en-us/library/zyzhdc6b.aspx[^]

            Have Fun Never forget it

            S Offline
            S Offline
            sameerhanda
            wrote on last edited by
            #5

            Thank half-life. I was aware of the second way as well. I was experimenting with a few things so I thoiught of this CheckForIllegalCrossThreadCalls = false; thing I read on codeproject a while ago.

            H 1 Reply Last reply
            0
            • S sameerhanda

              Thank half-life. I was aware of the second way as well. I was experimenting with a few things so I thoiught of this CheckForIllegalCrossThreadCalls = false; thing I read on codeproject a while ago.

              H Offline
              H Offline
              half life
              wrote on last edited by
              #6

              glad to help :) :)

              Have Fun Never forget it

              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