Hi

From MSDN doc :
EndRead must be called exactly for every call to BeginRead. Failing to end a read process before beginning another read can cause undesirable behavior such as deadlock.

EndRead waits until I/O operation is complete so you should not have your thread terminated.

Julien

On 4/10/06, GaoXianchao <[EMAIL PROTECTED]> wrote:
Hi all

I saw this in MSDN:
"All I/O initiated by a given thread is canceled when that thread
exits. A pending asynchronous operation can fail if the thread exits
before the operation completes."

so I have a question :
if I call a BeginXXX function in a thread of system thread pool(for
example, calling Socket.BeginReceive in receive_callback function
again),  will the thread be terminated before the asynchronous
poeration is completed?

Thanks a lot!

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list





--
Julien De Groote
USEC - Président
GI06 - Université de Technologie de Compiègne
[EMAIL PROTECTED]
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to