Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
Questionquestion about drawing a menu Pin
Green Fuze20-Oct-05 3:05
Green Fuze20-Oct-05 3:05 
Questionquestion about drawing a menu Pin
Green Fuze20-Oct-05 3:05
Green Fuze20-Oct-05 3:05 
QuestionDataGridView columns Pin
Greeky20-Oct-05 2:53
Greeky20-Oct-05 2:53 
QuestionNt Event logger Pin
sharathgowda20-Oct-05 2:32
sharathgowda20-Oct-05 2:32 
AnswerRe: Nt Event logger Pin
S. Senthil Kumar20-Oct-05 4:36
S. Senthil Kumar20-Oct-05 4:36 
QuestionListView DisObeys!!! Pin
Ali Beirami20-Oct-05 2:12
Ali Beirami20-Oct-05 2:12 
QuestionStoping a running thread Pin
reederma20-Oct-05 2:04
reederma20-Oct-05 2:04 
AnswerRe: Stoping a running thread Pin
Tom Larsen20-Oct-05 3:27
Tom Larsen20-Oct-05 3:27 
Unless a thread is designed to be interupted or killed from any location, it is generally a bad idea to stop a thread of execution from the outside. You can easily leave whatever the thread is touching in a bad state by just killing the thread wherever. For instance if you are writing data to media you could be in the middle of the file when you externally tell the thread to end leaving you with junk data.

I would first look to see if there is a way to redo your application in such a way to avoid having the need to kill threads. But if you really really really want to halt a thread, use Abort which will generate a ThreadAbortException.

Hint: you will still need to Join even after you use Abort.
GeneralRe: Stoping a running thread Pin
reederma20-Oct-05 3:43
reederma20-Oct-05 3:43 
GeneralRe: Stoping a running thread Pin
S. Senthil Kumar20-Oct-05 4:44
S. Senthil Kumar20-Oct-05 4:44 
GeneralRe: Stoping a running thread Pin
Tom Larsen20-Oct-05 8:21
Tom Larsen20-Oct-05 8:21 
Questioncode Pin
johan198520-Oct-05 1:44
johan198520-Oct-05 1:44 
AnswerRe: code Pin
enjoycrack20-Oct-05 7:08
enjoycrack20-Oct-05 7:08 
AnswerRe: code Pin
Matt Newman20-Oct-05 9:03
Matt Newman20-Oct-05 9:03 
AnswerRe: code Pin
Matt Gerrans20-Oct-05 13:17
Matt Gerrans20-Oct-05 13:17 
GeneralRe: code Pin
tatchung20-Oct-05 15:19
tatchung20-Oct-05 15:19 
QuestionHow to Select Acroos All pages in Grid Pin
kris8220-Oct-05 1:19
kris8220-Oct-05 1:19 
Questioncheck interface Pin
ppp00120-Oct-05 1:07
ppp00120-Oct-05 1:07 
AnswerRe: check interface Pin
Guffa20-Oct-05 1:35
Guffa20-Oct-05 1:35 
Questioncreate a crypt ing key by text Pin
Sasuko20-Oct-05 0:57
Sasuko20-Oct-05 0:57 
GeneralRe: create a crypt ing key by text Pin
Guffa20-Oct-05 1:21
Guffa20-Oct-05 1:21 
GeneralRe: create a crypt ing key by text Pin
Sasuko20-Oct-05 1:42
Sasuko20-Oct-05 1:42 
GeneralRe: create a crypt ing key by text Pin
Guffa20-Oct-05 2:23
Guffa20-Oct-05 2:23 
QuestionVideos show wrong duration Pin
Sensei7620-Oct-05 0:33
Sensei7620-Oct-05 0:33 
AnswerRe: Videos show wrong duration Pin
Pixinger7720-Oct-05 0:49
Pixinger7720-Oct-05 0:49 

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.