FIX: Cannot Watch Local Variables of a __finally Block (122847)
The information in this article applies to:
- The Integrated Debugger, when used with:
- Microsoft Visual C++, 32-bit Professional Edition 2.0
This article was previously published under Q122847 SYMPTOMS
When 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.
RESOLUTION
If 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.
STATUS
Microsoft 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.
REFERENCES
For more information on the try-finally statement, see Chapter 5 of the C
Language reference.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbBug kbDebug kbfix kbide KB122847 |
---|
|