Results 1 to 6 of 6

Thread: [RESOLVED] check if a thread is still running?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    104

    Resolved [RESOLVED] check if a thread is still running?

    I would like to know how to check and see if a thread is still running or not.

    for example
    VB Code:
    1. private sub mysub1
    2. dim thread1 as new system.threading.thread(addressof mythread1)
    3.  
    4. 'i only want to start the thread if it isnt allready running
    5.  
    6. 'if thread1 isnt running then
    7. thread1.start
    8. 'end if
    9. end sub
    10.  
    11. private sub mythread1
    12. do while a = true
    13. some code here
    14. loop
    15. end sub
    Last edited by chaos75; Oct 16th, 2006 at 03:15 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width