The information in this article applies to:
SYMPTOMSWhen stepping into the __finally block of a try-finally statement, any variables that might exist local to that block may not show correct values in the locals or watch window of the integrated debugger. RESOLUTIONIf you need to watch variables used in a __finally block of a try-finally statement, either declare the variables outside of the scope of the __finally block, or assign the value of the local variable to another variable of the same type that has been declared outside the scope of the __finally block. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was not reproducible in Microsoft Visual C++, 32-bit Edition, version 4.0. MORE INFORMATION
The try-finally statement is a Microsoft extension to the C language that
enables applications to guarantee execution of cleanup code when execution
of a block of code is interrupted.
Sample Code to Demonstrate Problem
REFERENCESFor more information on the try-finally statement, see Chapter 5 of the C Language reference. Additional query words: 1.00 2.00 buglist1.00 buglist2.00 8.00 9.00 exception Visual Workbench VWB 1.1
Keywords : kbDebug kbide |
Last Reviewed: January 18, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |