THREAD becomes Unstable


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: THREAD becomes Unstable

  1. #1
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    84

    THREAD becomes Unstable

    Hi All

    I am using vb.net to controll a data capture device. I have used thread for the data capturing. I have included progressbar to indicate the status. Once the datacapturing is finished , progresbar value will go to zero . code for the prograssbar is written in a procedure named as " clearprogressbar"

    This program works fine ,but it is not stable. Sometime I can't see the progressbar cleared after data capturing which means thread did not invoke
    clearprogressbar. so progressbar remains stay in 100 %

    Can Anybody help with this issue ?

    Best Regards

    Faisal

  2. #2
    Join Date
    Jun 2004
    Posts
    93
    Manipulating a forms control (progress bar) from a new thread requires that you invoke on the form's thread. You don't really give the details of how you are interacting between your data capture thread and the progress bar, but this is most likely the cause of the instability.

    Each time you set a value or clear the progress bar, you must invoke on the form's thread.

Similar Threads

  1. Thread - Join method
    By solomon_13000 in forum Java
    Replies: 2
    Last Post: 07-22-2009, 04:53 AM
  2. Problem with thread priorities
    By erray in forum C++
    Replies: 8
    Last Post: 10-11-2007, 04:17 AM
  3. Replies: 4
    Last Post: 04-27-2006, 07:01 AM
  4. Replies: 1
    Last Post: 10-29-2000, 04:51 PM
  5. Replies: 2
    Last Post: 10-27-2000, 03:07 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center