problem with threads
-
i,ve developed a simple concurrent server and each client is handled by a new thread, after doing some function in the child thread i update the main form using a delegate, the problem is when an exception is occurred in the child thread even though it is handled my whole application get stuck. what might be the solution for this senario. and i would like to know , once the child thread is returned is it terminated by itself or do i have to do it manually?
-
i,ve developed a simple concurrent server and each client is handled by a new thread, after doing some function in the child thread i update the main form using a delegate, the problem is when an exception is occurred in the child thread even though it is handled my whole application get stuck. what might be the solution for this senario. and i would like to know , once the child thread is returned is it terminated by itself or do i have to do it manually?
It terminates itself, I believe. Your best bet is a try/catch to catch any errors you may anticipate and which you want to ignore.
Christian Graus Driven to the arms of OSX by Vista.
-
i,ve developed a simple concurrent server and each client is handled by a new thread, after doing some function in the child thread i update the main form using a delegate, the problem is when an exception is occurred in the child thread even though it is handled my whole application get stuck. what might be the solution for this senario. and i would like to know , once the child thread is returned is it terminated by itself or do i have to do it manually?
hi... U must terminate child thread when an exception occured..... for more information click below link... About Threading in c#