Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
QuestionInvalid argument (Converted from VB.Net) Pin
Midnight Ahri20-Jul-12 17:12
Midnight Ahri20-Jul-12 17:12 
GeneralRe: Invalid argument (Converted from VB.Net) Pin
Wes Aday20-Jul-12 17:51
professionalWes Aday20-Jul-12 17:51 
AnswerRe: Invalid argument (Converted from VB.Net) Pin
Midnight Ahri20-Jul-12 19:00
Midnight Ahri20-Jul-12 19:00 
GeneralRe: Invalid argument (Converted from VB.Net) Pin
Dave Kreskowiak21-Jul-12 3:13
mveDave Kreskowiak21-Jul-12 3:13 
QuestionSelecting thread from multiples Pin
MAW3020-Jul-12 15:54
MAW3020-Jul-12 15:54 
AnswerRe: Selecting thread from multiples Pin
Richard MacCutchan20-Jul-12 22:35
mveRichard MacCutchan20-Jul-12 22:35 
QuestionRe: Backgroundworker Thread Issue Pin
munishk20-Jul-12 6:50
munishk20-Jul-12 6:50 
AnswerRe: Backgroundworker Thread Issue Pin
Ian Shlasko20-Jul-12 7:39
Ian Shlasko20-Jul-12 7:39 
You may have separated the actual work into the background thread (Though I don't see this doing anything but incrementing a counter), but your ReportProgress calls themselves can lock up the GUI.

Each time you ReportProgress, you're sending a message from the background thread to the GUI thread, which locks up the GUI thread for a tiny fraction of a second. If you're CONSTANTLY doing that, you'll find the GUI becomes locked up entirely.

Try to reduce the frequency with which you send status updates... Maybe only send an update every X iterations, and do some testing to figure out a good value for X.

And I assume you're planning on having the background worker do more than count, because that's really going to slow things down Smile | :)
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

AnswerMessage Closed PinPopular
20-Jul-12 7:56
WebMaster20-Jul-12 7:56 
GeneralRe: Backgroundworker Thread Issue Pin
munishk21-Jul-12 3:50
munishk21-Jul-12 3:50 
AnswerRe: Backgroundworker Thread Issue Pin
DaveyM6920-Jul-12 7:56
professionalDaveyM6920-Jul-12 7:56 
AnswerRe: Backgroundworker Thread Issue Pin
Sunil P V20-Jul-12 20:33
Sunil P V20-Jul-12 20:33 
GeneralRe: Backgroundworker Thread Issue Pin
munishk21-Jul-12 3:50
munishk21-Jul-12 3:50 
GeneralRe: Backgroundworker Thread Issue Pin
Sunil P V21-Jul-12 18:51
Sunil P V21-Jul-12 18:51 
QuestionProblem with Math.Tan Function Pin
computerpublic20-Jul-12 6:12
computerpublic20-Jul-12 6:12 
AnswerRe: Problem with Math.Tan Function Pin
BobJanova20-Jul-12 6:20
BobJanova20-Jul-12 6:20 
GeneralRe: Problem with Math.Tan Function Pin
computerpublic20-Jul-12 6:22
computerpublic20-Jul-12 6:22 
GeneralRe: Problem with Math.Tan Function Pin
computerpublic20-Jul-12 6:30
computerpublic20-Jul-12 6:30 
GeneralRe: Problem with Math.Tan Function Pin
BobJanova22-Jul-12 22:56
BobJanova22-Jul-12 22:56 
GeneralRe: Problem with Math.Tan Function Pin
lewax0020-Jul-12 7:11
lewax0020-Jul-12 7:11 
GeneralRe: Problem with Math.Tan Function Pin
computerpublic20-Jul-12 7:33
computerpublic20-Jul-12 7:33 
GeneralRe: Problem with Math.Tan Function Pin
lewax0020-Jul-12 7:57
lewax0020-Jul-12 7:57 
GeneralRe: Problem with Math.Tan Function Pin
djdanlib20-Jul-12 10:48
djdanlib20-Jul-12 10:48 
GeneralRe: Problem with Math.Tan Function Pin
Dave Kreskowiak20-Jul-12 13:17
mveDave Kreskowiak20-Jul-12 13:17 
GeneralMessage Closed Pin
20-Jul-12 6:28
WebMaster20-Jul-12 6:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.