G
Guest
Hello All,
I met a strange behavior with the system threadpool. The worker thread seems
to quit in the middle of processing. Here is the code: I could see the step 1
is finished but step 2 is not finished. There was no exception. Any thoughts?
{
....
ThreadPool.QueueUserWorkItem(new WaitCallback(Process_Data), myObj)
....
}
static void Process_Data(object Data)
{
....
try
{
//step 1
...
//step 2
...
}
catch ()
{
....
}
}
I met a strange behavior with the system threadpool. The worker thread seems
to quit in the middle of processing. Here is the code: I could see the step 1
is finished but step 2 is not finished. There was no exception. Any thoughts?
{
....
ThreadPool.QueueUserWorkItem(new WaitCallback(Process_Data), myObj)
....
}
static void Process_Data(object Data)
{
....
try
{
//step 1
...
//step 2
...
}
catch ()
{
....
}
}