Re: Trouble with "continue" in try/catch block
- From: "hansjoergp" <hansjoerg.petschko@xxxxxxxxxx>
- Date: Wed, 26 Nov 2008 08:57:52 +0100
Yes, the execution will jump from the second throw into the catch block although it is outside the try block.
This is the command line as written by the compiler in the output window:
1>Microsoft (R) C/C++ Optimizing Compiler Version 15.00.20720 for ARM
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>cl /Od /D "_DEBUG" /D "_WIN32_WCE=0x502" /D "UNDER_CE" /D "WIN32_PLATFORM_PSPC" /D "WINCE" /D "DEBUG" /D "_CONSOLE" /D "ARM" /D "_ARM_" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /MTd /fp:fast /GR- /Fo"Windows Mobile 6 Professional SDK (ARMV4I)\Debug/" /Fd"Windows Mobile 6 Professional SDK (ARMV4I)\Debug/vc80.pdb" /W3 /c /Zi /TP
1> .\Experiment.cpp
No settings have been changed (except the startup banner) compared to the default settings after the project has been created.
Thanks
Hansjoerg
"Ulrich Eckhardt" <eckhardt@xxxxxxxxxxxxxx> schrieb im Newsbeitrag news:94gtv5-uif.ln1@xxxxxxxxxxxxxxxxxxxxxxxxx
hansjoergp wrote:the following short program should crash (unhandled exception), but on WM5
and WM6 it will loop forever between the throw 2; and the catch block.
You really mean that it will loop between the 'throw 2' and the 'catch' even
though the former is outside the latter? In that case, this is definitely a
bug.
Just wondering, can you tell me what compiler version you are using and what
commandline arguments? Just turn on the option that it writes this to the
compile output window.
Thanks!
Uli
--
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
.
- References:
- Trouble with "continue" in try/catch block
- From: hansjoergp
- Re: Trouble with "continue" in try/catch block
- From: Ulrich Eckhardt
- Trouble with "continue" in try/catch block
- Prev by Date: Re: Trouble with "continue" in try/catch block
- Next by Date: Compilation Error EVC 4 StandardSDK
- Previous by thread: Re: Trouble with "continue" in try/catch block
- Next by thread: wchar_t* pointer problem
- Index(es):
Relevant Pages
|