PC Review


Reply
Thread Tools Rate Thread

BackgroundWorker bug

 
 
Liviu Uba
Guest
Posts: n/a
 
      18th Nov 2005
I have vs2005 final, on a dual processor machine running win 2003 server.
I can report that the ProgressChanged events of the Backgroundworker are
most of the times executed in a random order.
This is counter-logical and not specified in the documentation.
Imagine binding a progressbar and watching it randomly decreasing and
increasing.
Imagine reading a big file, and adding the lines read to a StringBuilder ( I
know is not the recommended method, one can use FileStream.BeginRead ).

I finally used a native window and good oldPostMessage to execute my events
on the main thread.
And voila, no more problems...







 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backgroundworker Tony Johansson Microsoft C# .NET 2 10th May 2010 04:31 PM
Is this a BackgroundWorker? Harlan Messinger Microsoft C# .NET 3 12th Feb 2010 09:05 PM
BackgroundWorker in different OS antarikshv Microsoft VC .NET 0 23rd May 2008 09:03 AM
BackgroundWorker in .NET CF 2.0 davis Microsoft Dot NET Compact Framework 9 11th Dec 2006 12:41 AM
BackGroundWorker for .NET 1.1? Mitchell Vincent Microsoft VB .NET 8 22nd Feb 2006 06:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:00 AM.