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. Debug without other threads stopped!

Debug without other threads stopped!

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiocsharpdebugging
7 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.
  • R Offline
    R Offline
    reza matinnejad
    wrote on last edited by
    #1

    I use Microsoft Visual Studio 6.0 and i want to debug a program without ther threads being stopped. toxcct did answer me yesterday,but I can not find the setting in VS 6.

    M R 2 Replies Last reply
    0
    • R reza matinnejad

      I use Microsoft Visual Studio 6.0 and i want to debug a program without ther threads being stopped. toxcct did answer me yesterday,but I can not find the setting in VS 6.

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Run the program under the debugger using F5. The program will run until a thread hits a breakpoint or causes an exception.

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

      R 1 Reply Last reply
      0
      • R reza matinnejad

        I use Microsoft Visual Studio 6.0 and i want to debug a program without ther threads being stopped. toxcct did answer me yesterday,but I can not find the setting in VS 6.

        R Offline
        R Offline
        reza matinnejad
        wrote on last edited by
        #3

        I want to set a breakpoint and debug one thread without other threads being stopped?

        W 1 Reply Last reply
        0
        • M Michael Dunn

          Run the program under the debugger using F5. The program will run until a thread hits a breakpoint or causes an exception.

          --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

          R Offline
          R Offline
          reza matinnejad
          wrote on last edited by
          #4

          but i don't want other threads of my prgoram to be stopped! I use microsoft visual studio 6.

          1 Reply Last reply
          0
          • R reza matinnejad

            I want to set a breakpoint and debug one thread without other threads being stopped?

            W Offline
            W Offline
            Waldermort
            wrote on last edited by
            #5

            AFAIK this is not possible. Threads usually send and share information between each other. If one thread has been stopped, it could very well cause the other thread to crash. Perhaps you should consider using processes rather than threads.

            R 1 Reply Last reply
            0
            • W Waldermort

              AFAIK this is not possible. Threads usually send and share information between each other. If one thread has been stopped, it could very well cause the other thread to crash. Perhaps you should consider using processes rather than threads.

              R Offline
              R Offline
              reza matinnejad
              wrote on last edited by
              #6

              I am using a DLL in my program which checks a hardware periodically. When i am debugging my application,DLL reset the state of the hardware because of the pause time. Then i want DLL threads to run normally as i am debugging other threads!

              W 1 Reply Last reply
              0
              • R reza matinnejad

                I am using a DLL in my program which checks a hardware periodically. When i am debugging my application,DLL reset the state of the hardware because of the pause time. Then i want DLL threads to run normally as i am debugging other threads!

                W Offline
                W Offline
                Waldermort
                wrote on last edited by
                #7

                Like I suggested in my last post, use processes not threads. Create a process which loads your dll and does all the hardware monitoring. Create another process which handles events. When something happens with the hardware, use "inter process communication" to notify your other process.

                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