|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Peter Foreman (peter_foreman
YAHOO.COM)Date: Wed Feb 13 2002 - 02:23:04 CST
--- Vinay_Balasubramaniam <Vinay_Balasubramaniam
SATYAM.COM> wrote:
> Can anyone tell me as to how i can handle exceptions in threading ???
> My application is in MFC.
> Code snippet will be helpful.
Just the same as normal. Just remember that each thread has its own stack, and there is no way of
passing exceptions between threads. (Since exceptions are closely related to stacks).
... ThreadFunc( void * )
{
try{
// Do stuff here
}
catch(...){
// Catch stuff here
}
}
Do you have something more specific in mind?
Peter
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]