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. .NET (Core and Framework)
  4. Kill a Thread

Kill a Thread

Scheduled Pinned Locked Moved .NET (Core and Framework)
tutorial
5 Posts 3 Posters 6 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.
  • I Offline
    I Offline
    i i i
    wrote on last edited by
    #1

    Thanks in Adv. How to forcefully Kill a Thread in VB dot net 2005 Best Of Regards, Mirza Rahman

    D J 2 Replies Last reply
    0
    • I i i i

      Thanks in Adv. How to forcefully Kill a Thread in VB dot net 2005 Best Of Regards, Mirza Rahman

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It's not really the proper way to stop a thread, but you just call it's Abort method.

      someThreadIStarted.Abort
      

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      I 1 Reply Last reply
      0
      • D Dave Kreskowiak

        It's not really the proper way to stop a thread, but you just call it's Abort method.

        someThreadIStarted.Abort
        

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        I Offline
        I Offline
        i i i
        wrote on last edited by
        #3

        Thanks for Replying I tried this like Thread.abort thread.resetabort thread.suspend But nothing works It give error that Call is from some outside referenced Thread

        D 1 Reply Last reply
        0
        • I i i i

          Thanks for Replying I tried this like Thread.abort thread.resetabort thread.suspend But nothing works It give error that Call is from some outside referenced Thread

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

          What's the exact error message?? Are you trying to kill a thread your code didn't create?? Or are you trying to have a thread kill itself??

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          1 Reply Last reply
          0
          • I i i i

            Thanks in Adv. How to forcefully Kill a Thread in VB dot net 2005 Best Of Regards, Mirza Rahman

            J Offline
            J Offline
            just3ala2
            wrote on last edited by
            #5

            U need to create an event handler with a delegate and call it when needed. Just google it :)

            Best Regards 3ala2 :)

            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