Click here to Skip to main content
15,915,086 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: time out error Pin
Wendelius24-Jan-09 3:04
mentorWendelius24-Jan-09 3:04 
QuestionDownload Microsoft WinFS Beta 1 Pin
mejax23-Jan-09 20:23
mejax23-Jan-09 20:23 
AnswerRe: Download Microsoft WinFS Beta 1 Pin
Dave Kreskowiak24-Jan-09 10:42
mveDave Kreskowiak24-Jan-09 10:42 
Questionwhat is difference between webservice and window service Pin
lipupal23-Jan-09 17:11
lipupal23-Jan-09 17:11 
AnswerRe: what is difference between webservice and window service Pin
Dave Kreskowiak23-Jan-09 17:36
mveDave Kreskowiak23-Jan-09 17:36 
AnswerRe: what is difference between webservice and window service Pin
Manas Bhardwaj25-Jan-09 23:34
professionalManas Bhardwaj25-Jan-09 23:34 
AnswerRe: what is difference between webservice and window service Pin
sivasss26-Jan-09 21:41
sivasss26-Jan-09 21:41 
QuestionSemi-background task on UI thread Pin
supercat923-Jan-09 8:31
supercat923-Jan-09 8:31 
What is the best way to handle a task which must be performed on the UI thread, but which may take awhile to complete (e.g. a slow control update or redraw)? One approach would be to do part of the task and then BeginInvoke a routine which will do the rest (possibly by itself doing part and using BeginInvoke again). That approach, however, could end up wasting a lot of CPU time handling the BeginInvoke operations in cases where there isn't anything else for the UI thread to be doing and the tasks could have been run to completion.

Is there any good way to say "Run this code if there isn't anything better for the UI thread to do", and then (within that code) ask "Has anything else come up the UI thread should be doing"?

Alternatively, are there any tricks that would allow a control to be drawn within its own thread? I would expect interaction between the control and the rest of the form would have to be handled on the form's UI thread, and the control would have to have a means of queueing things like resize events from the UI thread and dealing with them sensibly, but if a control would otherwise take a little time to render being able to handle the rendering on its own thread would be helpful.
AnswerRe: Semi-background task on UI thread Pin
Jon Rista23-Jan-09 8:39
Jon Rista23-Jan-09 8:39 
GeneralRe: Semi-background task on UI thread Pin
supercat923-Jan-09 10:03
supercat923-Jan-09 10:03 
GeneralRe: Semi-background task on UI thread Pin
Jon Rista23-Jan-09 11:36
Jon Rista23-Jan-09 11:36 
GeneralRe: Semi-background task on UI thread Pin
supercat923-Jan-09 16:39
supercat923-Jan-09 16:39 
GeneralRe: Semi-background task on UI thread Pin
Jon Rista24-Jan-09 5:46
Jon Rista24-Jan-09 5:46 
GeneralRe: Semi-background task on UI thread Pin
supercat925-Jan-09 8:27
supercat925-Jan-09 8:27 
GeneralRe: Semi-background task on UI thread Pin
N a v a n e e t h23-Jan-09 16:43
N a v a n e e t h23-Jan-09 16:43 
GeneralRe: Semi-background task on UI thread Pin
supercat923-Jan-09 17:43
supercat923-Jan-09 17:43 
AnswerRe: Semi-background task on UI thread Pin
S. Senthil Kumar24-Jan-09 2:02
S. Senthil Kumar24-Jan-09 2:02 
GeneralRe: Semi-background task on UI thread Pin
supercat924-Jan-09 8:05
supercat924-Jan-09 8:05 
QuestionDictionary database? Pin
C Change23-Jan-09 7:00
C Change23-Jan-09 7:00 
AnswerRe: Dictionary database? Pin
Wendelius23-Jan-09 7:42
mentorWendelius23-Jan-09 7:42 
GeneralRe: Dictionary database? Pin
C Change23-Jan-09 8:14
C Change23-Jan-09 8:14 
GeneralRe: Dictionary database? Pin
Wendelius23-Jan-09 8:27
mentorWendelius23-Jan-09 8:27 
GeneralRe: Dictionary database? Pin
C Change23-Jan-09 8:37
C Change23-Jan-09 8:37 
GeneralRe: Dictionary database? Pin
Wendelius23-Jan-09 8:41
mentorWendelius23-Jan-09 8:41 
AnswerRe: Dictionary database? Pin
PIEBALDconsult23-Jan-09 12:31
mvePIEBALDconsult23-Jan-09 12:31 

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.