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 / C++ / MFC
  4. Thread

Thread

Scheduled Pinned Locked Moved C / C++ / MFC
questionvisual-studio
7 Posts 4 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.
  • A Offline
    A Offline
    Alex_Y
    wrote on last edited by
    #1

    How can I change execution point in suspended thread? So if thread became suspended during executing some loop how I can move execution point programaticaly same way we Set next statment in VS? I know exceptions uses same mechanizm. Thnaks. :)

    A A A 3 Replies Last reply
    0
    • A Alex_Y

      How can I change execution point in suspended thread? So if thread became suspended during executing some loop how I can move execution point programaticaly same way we Set next statment in VS? I know exceptions uses same mechanizm. Thnaks. :)

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      goto

      A 1 Reply Last reply
      0
      • A Alex_Y

        How can I change execution point in suspended thread? So if thread became suspended during executing some loop how I can move execution point programaticaly same way we Set next statment in VS? I know exceptions uses same mechanizm. Thnaks. :)

        A Offline
        A Offline
        Andy Brummer
        wrote on last edited by
        #3

        You have to use the debug API to do what you are asking. However that is a bad idea. You need to find out which object the thread is locking on and release the object so the thread can continue, or better yet figure out what condition is causing the deadlock and prevent it from occuring.

        A 1 Reply Last reply
        0
        • A Alex_Y

          How can I change execution point in suspended thread? So if thread became suspended during executing some loop how I can move execution point programaticaly same way we Set next statment in VS? I know exceptions uses same mechanizm. Thnaks. :)

          A Offline
          A Offline
          Automation Software Engineer A S E
          wrote on last edited by
          #4

          how is the thread suspended? Is it through an external called of Suspend() method or by waiting for a handle through WaitForSingleObject, WaitForMultipleObjects,MsgWaitForMultipleObjects functions?

          A 1 Reply Last reply
          0
          • A Andy Brummer

            You have to use the debug API to do what you are asking. However that is a bad idea. You need to find out which object the thread is locking on and release the object so the thread can continue, or better yet figure out what condition is causing the deadlock and prevent it from occuring.

            A Offline
            A Offline
            Alex_Y
            wrote on last edited by
            #5

            Somewhere in third party ActiveX control. Owner not exist. :) :)

            1 Reply Last reply
            0
            • A Anonymous

              goto

              A Offline
              A Offline
              Alex_Y
              wrote on last edited by
              #6

              I like that one :) Goto AnotherThread: // like that right :)

              1 Reply Last reply
              0
              • A Automation Software Engineer A S E

                how is the thread suspended? Is it through an external called of Suspend() method or by waiting for a handle through WaitForSingleObject, WaitForMultipleObjects,MsgWaitForMultipleObjects functions?

                A Offline
                A Offline
                Alex_Y
                wrote on last edited by
                #7

                Extermal Suspend() :)

                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