0

Closed

XmlManuInstructions: try to catch the exception but do nothing.

description

Here is the code of sample ’XmlManuInstructions’, the line from 56 to 63.
 
 
 
 

try
{
webWriter.Write(requestXml);
webWriter.Flush();
}
finally
{
}

 
You see, the author used ‘try’ to catch the exceptions, but didn’t deal with it. That maybe cause all exceptions being masked.
I would suppose the author wanted to do something in ‘finally’ but not completed.

Environment:

1> Samples 81021
 

Repro Step:

1>Open '...Samples\Engine\xml\XmlManuInstructions\CS\XmlManuInstructions\ManuInstructions.cs'
2>Take a view the line 63 of 'try ... finally' statement
 

Expectations:

I f try to catch the exception, the exception should be deal with.
 

Actual Results:

Try to catch the exception but do nothing.
Closed Mar 9, 2009 at 8:50 AM by libinzhao

comments

wrote Mar 6, 2009 at 2:17 AM

XmlManuInstructions\CS\XmlManuInstructions\ManuInstructions.csComment Out Line==>56,57,60~63
XmlManuInstructions\VB\XmlManuInstructions\Instructions.vbComment Out Line==>81,84,86

wrote Mar 9, 2009 at 8:50 AM

Verified on Sample build 90306.

wrote Feb 13, 2013 at 7:02 PM

wrote May 16, 2013 at 3:03 AM