Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: PropertyGrid - how to apply changes? Pin
Anonymous3-May-05 10:00
Anonymous3-May-05 10:00 
GeneralRead only Outlookbar Pin
Member 19299502-May-05 12:43
Member 19299502-May-05 12:43 
GeneralRe: Read only Outlookbar Pin
MoustafaS2-May-05 13:14
MoustafaS2-May-05 13:14 
GeneralUrl navigation Pin
Adnan Siddiqi2-May-05 10:42
Adnan Siddiqi2-May-05 10:42 
GeneralRe: Url navigation Pin
leppie2-May-05 14:57
leppie2-May-05 14:57 
QuestionCancellable operation -- recommended practice? Pin
Judah Gabriel Himango2-May-05 9:42
sponsorJudah Gabriel Himango2-May-05 9:42 
AnswerRe: Cancellable operation -- recommended practice? Pin
Marc Clifton2-May-05 10:56
mvaMarc Clifton2-May-05 10:56 
GeneralRe: Cancellable operation -- recommended practice? Pin
Judah Gabriel Himango2-May-05 11:03
sponsorJudah Gabriel Himango2-May-05 11:03 
I don't kill the DoHeavy thread because DoHeavy is calling a method in a library I don't have the source code for (so I can't 'cancel' the thread, so to speak). And I'm a firm believer in abstaining from Thread.Abort calls, especially from asynchronous code.

The slow method in question is actually a synchronous IO operation, one which the library providers did not provide an asynchronous alternative to, so in reality it's not so much eating the CPU cycles as it is just wasting disk space on an disk writing operation.

As far as the Thread.Sleep() & operation.IsCompleted calls inside the while loop, is there any better way to do that? If not, would it be wise to make shorter iterations in the sleep loop (causing more IsCompleted calls) or better to sleep more and query IsCompleted less often?

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Horrific Minnesota Radio
Judah Himango


QuestionPassing methods to ThreadStart - Possible? Pin
stan282-May-05 8:52
stan282-May-05 8:52 
AnswerRe: Passing methods to ThreadStart - Possible? Pin
Judah Gabriel Himango2-May-05 9:05
sponsorJudah Gabriel Himango2-May-05 9:05 
AnswerRe: Passing methods to ThreadStart - Possible? Pin
Marc Clifton2-May-05 10:52
mvaMarc Clifton2-May-05 10:52 
AnswerRe: Passing methods to ThreadStart - Possible? Pin
leppie2-May-05 14:29
leppie2-May-05 14:29 
GeneralGeneric Hashtable Pin
Anonymous2-May-05 8:48
Anonymous2-May-05 8:48 
GeneralRe: Generic Hashtable Pin
Marc Clifton2-May-05 10:53
mvaMarc Clifton2-May-05 10:53 
GeneralRe: Generic Hashtable Pin
Anonymous3-May-05 5:09
Anonymous3-May-05 5:09 
GeneralRe: Generic Hashtable Pin
leppie2-May-05 14:46
leppie2-May-05 14:46 
GeneralOle Server Pin
BigAnyon2-May-05 5:58
BigAnyon2-May-05 5:58 
GeneralVisual style icons / bitmaps Pin
Anonymous2-May-05 5:45
Anonymous2-May-05 5:45 
GeneralRe: Visual style icons / bitmaps Pin
Judah Gabriel Himango2-May-05 7:05
sponsorJudah Gabriel Himango2-May-05 7:05 
GeneralRe: Visual style icons / bitmaps Pin
MoustafaS2-May-05 8:49
MoustafaS2-May-05 8:49 
GeneralEasy file I/O Pin
briggs_w2-May-05 4:58
briggs_w2-May-05 4:58 
GeneralRe: Easy file I/O Pin
Heath Stewart2-May-05 5:11
protectorHeath Stewart2-May-05 5:11 
GeneralRe: Easy file I/O Pin
Marc Clifton2-May-05 5:24
mvaMarc Clifton2-May-05 5:24 
General... also ... Pin
Marc Clifton2-May-05 5:26
mvaMarc Clifton2-May-05 5:26 
GeneralRe: Easy file I/O Pin
briggs_w5-May-05 5:50
briggs_w5-May-05 5:50 

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.