A
AB
Hi All,
I've got a section of code which resembles
do
{
try...........(1)
{
//do something here
}
catch(exception)
{
//handle exception
}
}
while(condition) ;
//resume execution............(2)
If the exception is not thrown, the loop continues normally. However,
when an exception is caught...the catch block is executed after which
control moves to (2) and not back to (1) as I expected.
Can anyone tell me what I'm missing out here? If it helps...I'm using
the MSVC 8.0 compiler.
I've got a section of code which resembles
do
{
try...........(1)
{
//do something here
}
catch(exception)
{
//handle exception
}
}
while(condition) ;
//resume execution............(2)
If the exception is not thrown, the loop continues normally. However,
when an exception is caught...the catch block is executed after which
control moves to (2) and not back to (1) as I expected.
Can anyone tell me what I'm missing out here? If it helps...I'm using
the MSVC 8.0 compiler.