Click here to Skip to main content
15,891,409 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionNo .Net 2.0 Look&Feel when running app Pin
Stefan Schwarzbach13-May-06 5:39
Stefan Schwarzbach13-May-06 5:39 
AnswerRe: No .Net 2.0 Look&Feel when running app Pin
Joshua Quick14-May-06 7:57
Joshua Quick14-May-06 7:57 
GeneralRe: No .Net 2.0 Look&Feel when running app Pin
Stefan Schwarzbach14-May-06 8:05
Stefan Schwarzbach14-May-06 8:05 
QuestionDistributing .NET Framework... Pin
Shy Agam13-May-06 3:41
Shy Agam13-May-06 3:41 
AnswerRe: Distributing .NET Framework... Pin
Guffa13-May-06 5:00
Guffa13-May-06 5:00 
QuestionProblem with Thread.Start Pin
Bob_Sun11-May-06 23:01
Bob_Sun11-May-06 23:01 
GeneralRe: Problem with Thread.Start Pin
George L. Jackson12-May-06 14:44
George L. Jackson12-May-06 14:44 
GeneralRe: Problem with Thread.Start Pin
Bob_Sun13-May-06 5:30
Bob_Sun13-May-06 5:30 
George L. Jackson wrote:
There are too many reasons to list since you have not provided any code, pseudo-code or even a brief discription of what your threads are doing. Are you using try-catch-finally blocks or assertions in your thread code? Are your threads modifying the same data?


Thank you for your reply. As it is impossible to attach too many source code, I hope a brief discription will help.

I use a thread manager of my own to create threads, keep track of the handlers of them while the threads are working and delete each handler just before each thread exits. All the threads execute in background and have a priority "normal". Threads of the same type will have the same thread name. Before the object which owns the thread manager dispose, it will also call the Dispose method of thread manager in which all thread handlers will be checked and aborted if the ThreadState is not "Stopped" (if a thread exits normally, no reference of finished thread will remain in thread manager 's list).
Of cause, if any of the threads stopped abormally, the object which owns thread manager will hang up unless it is stopped by some external "event" .

From the help of MSDN, it is said a thread will be set to Running state whenever Thread.Start() is executed and will be scheduled by OS. I have never imagined a Started thread will stop somethere.

You see, I don't use Thread directly but instead use MyThread, and all the methods have try-catch for exceptions. As for the stopped thread, if it executes , a message must be logged first which never appeared when that thread hanged.

All the threads will entered the same statemachine and lock is used with a 10 seconds timer. As no timeout occured at all, no deadlock occured.

Could you give me some hints about "the too many reasons" please ?

Thank you
GeneralRe: Problem with Thread.Start Pin
George L. Jackson15-May-06 13:41
George L. Jackson15-May-06 13:41 
GeneralRe: Problem with Thread.Start Pin
Bob_Sun15-May-06 13:55
Bob_Sun15-May-06 13:55 
GeneralRe: Problem with Thread.Start Pin
George L. Jackson15-May-06 15:26
George L. Jackson15-May-06 15:26 
GeneralRe: Problem with Thread.Start Pin
Bob_Sun15-May-06 15:42
Bob_Sun15-May-06 15:42 
GeneralRe: Problem with Thread.Start Pin
George L. Jackson15-May-06 16:04
George L. Jackson15-May-06 16:04 
GeneralRe: Problem with Thread.Start Pin
Bob_Sun25-Jun-06 17:11
Bob_Sun25-Jun-06 17:11 
GeneralRe: Problem with Thread.Start Pin
George L. Jackson15-May-06 15:33
George L. Jackson15-May-06 15:33 
QuestionProblem whit Internet and .NET Pin
korrea8011-May-06 21:32
korrea8011-May-06 21:32 
QuestionHow to avail my assembly in Addreference Dialogue by default Pin
Saravanakumar.K11-May-06 19:02
Saravanakumar.K11-May-06 19:02 
QuestionUpdating ListView items in realtime. how? Pin
Ruth Ivimey-Cook11-May-06 14:03
Ruth Ivimey-Cook11-May-06 14:03 
AnswerRe: Updating ListView items in realtime. how? Pin
Robert Rohde12-May-06 22:43
Robert Rohde12-May-06 22:43 
GeneralRe: Updating ListView items in realtime. how? Pin
Ruth Ivimey-Cook15-May-06 23:59
Ruth Ivimey-Cook15-May-06 23:59 
QuestionGet wireless mouse information in .NET Pin
colin_os11-May-06 4:15
colin_os11-May-06 4:15 
AnswerRe: Get wireless mouse information in .NET Pin
Josh Smith14-May-06 5:26
Josh Smith14-May-06 5:26 
GeneralRe: Get wireless mouse information in .NET Pin
colin_os14-May-06 22:45
colin_os14-May-06 22:45 
QuestionMatrox X.mio Card in .Net Framework Pin
Andy Rama10-May-06 23:29
Andy Rama10-May-06 23:29 
QuestionFile lock problem with Image.FromFile() Pin
Stefan Spenz10-May-06 21:19
Stefan Spenz10-May-06 21:19 

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.