BUG: The if and else blocks of code unexpectedly execute in Visual Studio .NET 2002 (811324)
The information in this article applies to:
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual C# .NET (2002)
SYMPTOMSBoth the if and else blocks of code execute unexpectedly in an if-else statement when you create a Microsoft Visual C# .NET Console
Application project in Microsoft Visual Studio .NET 2002. CAUSEThis behavior occurs when the if-else statement is inside a try-catch block, and the finally block is empty. WORKAROUNDTo work around this issue, add a dummy statement in the finally block. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed in the "Applies to" section.
This problem was corrected in Microsoft Visual Studio .NET 2003.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | kbvs2002sp1sweep kbCompiler kbbug KB811324 kbAudDeveloper kbAudITPRO |
---|
|