Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: Global Shortcut Pin
elitecodex30-Dec-04 0:24
elitecodex30-Dec-04 0:24 
GeneralCLosing threads Pin
Ista29-Dec-04 11:56
Ista29-Dec-04 11:56 
GeneralRe: CLosing threads Pin
Adam Goossens29-Dec-04 14:35
Adam Goossens29-Dec-04 14:35 
GeneralRe: CLosing threads Pin
Ista30-Dec-04 4:53
Ista30-Dec-04 4:53 
GeneralRe: CLosing threads Pin
Adam Goossens30-Dec-04 13:03
Adam Goossens30-Dec-04 13:03 
GeneralThread and Not Responding Pin
brunoconde29-Dec-04 9:48
brunoconde29-Dec-04 9:48 
GeneralRe: Thread and Not Responding Pin
Tom Larsen29-Dec-04 10:49
Tom Larsen29-Dec-04 10:49 
GeneralRe: Thread and Not Responding Pin
Heath Stewart29-Dec-04 11:23
protectorHeath Stewart29-Dec-04 11:23 
In most cases I would totally agree with you.

There are cases, however, when you may want to execute something in another thread and eventually have your application block until it's finished. This is quite possible with the asynchronous pattern, when you first call Begin*, do something else, then block on End*. I would add, however, that's more common to use an AsyncCallback so that you don't have to block, but you could.

An example might be downloading a file via HttpWebRequest.BeginGetResponse. You could update the UI and then call HttpWebREquest.EndGetResponse to block until the HttpWebResponse is returned.

I'm not disagreeing that - if the original poster needs no functionality like what I descrbied - it is an abuse of threads. There may be a purpose, however (of which we would know since the original post mentioned nothing of this sort).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Thread and Not Responding Pin
Tom Larsen30-Dec-04 4:29
Tom Larsen30-Dec-04 4:29 
GeneralRe: Thread and Not Responding Pin
Heath Stewart30-Dec-04 5:17
protectorHeath Stewart30-Dec-04 5:17 
GeneralRe: Thread and Not Responding Pin
Heath Stewart29-Dec-04 11:06
protectorHeath Stewart29-Dec-04 11:06 
GeneralRe: Thread and Not Responding Pin
PaleyX1-Apr-05 2:50
PaleyX1-Apr-05 2:50 
GeneralRe: Thread and Not Responding Pin
Heath Stewart1-Apr-05 7:03
protectorHeath Stewart1-Apr-05 7:03 
GeneralRe: Thread and Not Responding Pin
PaleyX1-Apr-05 7:17
PaleyX1-Apr-05 7:17 
GeneralRe: Thread and Not Responding Pin
Heath Stewart2-Apr-05 1:25
protectorHeath Stewart2-Apr-05 1:25 
GeneralRe: Thread and Not Responding Pin
PaleyX2-Apr-05 1:53
PaleyX2-Apr-05 1:53 
GeneralRe: Thread and Not Responding Pin
Heath Stewart3-Apr-05 6:41
protectorHeath Stewart3-Apr-05 6:41 
GeneralRe: Thread and Not Responding Pin
PaleyX4-Apr-05 5:37
PaleyX4-Apr-05 5:37 
GeneralRe: Thread and Not Responding Pin
Heath Stewart4-Apr-05 8:23
protectorHeath Stewart4-Apr-05 8:23 
GeneralRe: Thread and Not Responding Pin
Ashar Khaliq29-Dec-04 11:17
Ashar Khaliq29-Dec-04 11:17 
GeneralRe: Thread and Not Responding Pin
brunoconde30-Dec-04 2:47
brunoconde30-Dec-04 2:47 
GeneralRe: Thread and Not Responding Pin
Heath Stewart30-Dec-04 5:14
protectorHeath Stewart30-Dec-04 5:14 
GeneralTAPI Programming in C# Pin
SyedMazharAli29-Dec-04 9:27
SyedMazharAli29-Dec-04 9:27 
GeneralRe: TAPI Programming in C# Pin
Michael P Butler29-Dec-04 10:10
Michael P Butler29-Dec-04 10:10 
GeneralRe: TAPI Programming in C# Pin
Ray Cassick29-Dec-04 10:14
Ray Cassick29-Dec-04 10:14 

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.