Click here to Skip to main content
15,917,538 members
Home / Discussions / C#
   

C#

 
GeneralRe: thread priority Pin
Paul Conrad22-Mar-08 5:23
professionalPaul Conrad22-Mar-08 5:23 
GeneralRe: thread priority Pin
George_George23-Mar-08 3:06
George_George23-Mar-08 3:06 
GeneralRe: thread priority Pin
Paul Conrad23-Mar-08 5:29
professionalPaul Conrad23-Mar-08 5:29 
GeneralRe: thread priority Pin
George_George23-Mar-08 19:37
George_George23-Mar-08 19:37 
GeneralRe: thread priority Pin
Paul Conrad24-Mar-08 4:25
professionalPaul Conrad24-Mar-08 4:25 
GeneralRe: thread priority Pin
George_George24-Mar-08 4:40
George_George24-Mar-08 4:40 
GeneralStrange stack trace Pin
Winkles20-Mar-08 15:56
Winkles20-Mar-08 15:56 
GeneralRe: Strange stack trace Pin
Guffa21-Mar-08 1:17
Guffa21-Mar-08 1:17 
If you abort a thread, the stack trace can contain pretty much anything. If it looks like what you posted, it simply means that the thread was aborted while running code in the main method of the thread.

When a thread is aborted the ThreadAbortException is thrown in the thread. To handle this as gracefully as possible, your thread should catch this exception in the main method, release any resources that the thread uses, and then just return.

The best is of course never to abort threads, but instead set a property or something like that, and let the thread finish itself off. Then it's much easier to write code that releases the right resources.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Strange stack trace Pin
Winkles21-Mar-08 6:21
Winkles21-Mar-08 6:21 
GeneralRe: Strange stack trace Pin
Winkles21-Mar-08 9:13
Winkles21-Mar-08 9:13 
Generalhelp with Databinding for visual studio .net in c # Pin
atonynh20-Mar-08 15:47
atonynh20-Mar-08 15:47 
GeneralRe: help with Databinding for visual studio .net in c # Pin
Christian Graus20-Mar-08 18:56
protectorChristian Graus20-Mar-08 18:56 
QuestionCan someone please tell me why the if Loop in my codes not working. Pin
ADTC#20-Mar-08 14:06
ADTC#20-Mar-08 14:06 
GeneralRe: Can someone please tell me why the if Loop in my codes not working. Pin
PIEBALDconsult20-Mar-08 15:14
mvePIEBALDconsult20-Mar-08 15:14 
Questionif condition not if loop (sorry for tht) Pin
ADTC#20-Mar-08 18:47
ADTC#20-Mar-08 18:47 
GeneralRe: Can someone please tell me why the if Loop in my codes not working. Pin
PIEBALDconsult20-Mar-08 15:21
mvePIEBALDconsult20-Mar-08 15:21 
GeneralLooking for good socket tutorials Pin
Jordanwb20-Mar-08 12:27
Jordanwb20-Mar-08 12:27 
GeneralRe: Looking for good socket tutorials Pin
Steve Echols20-Mar-08 19:09
Steve Echols20-Mar-08 19:09 
GeneralRe: Looking for good socket tutorials Pin
Jordanwb21-Mar-08 3:54
Jordanwb21-Mar-08 3:54 
QuestionClose MessageBox automaticly Pin
pcaeiro20-Mar-08 12:18
pcaeiro20-Mar-08 12:18 
GeneralRe: Close MessageBox automaticly Pin
Jordanwb20-Mar-08 12:29
Jordanwb20-Mar-08 12:29 
GeneralRe: Close MessageBox automaticly Pin
Christian Graus20-Mar-08 12:53
protectorChristian Graus20-Mar-08 12:53 
GeneralRe: Close MessageBox automaticly Pin
pcaeiro20-Mar-08 14:36
pcaeiro20-Mar-08 14:36 
GeneralRe: Close MessageBox automaticly Pin
Jordanwb20-Mar-08 15:38
Jordanwb20-Mar-08 15:38 
GeneralRe: Close MessageBox automaticly Pin
pcaeiro20-Mar-08 17:26
pcaeiro20-Mar-08 17:26 

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.