[Quantproject-developers] QuantProject/b1_ADT/FileManaging ObjectArchiver.cs, 1.2, 1.3
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2006-06-08 18:44:06
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/FileManaging In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23189/b1_ADT/FileManaging Modified Files: ObjectArchiver.cs Log Message: a catch clause has been added Index: ObjectArchiver.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/FileManaging/ObjectArchiver.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ObjectArchiver.cs 4 Feb 2005 00:02:53 -0000 1.2 --- ObjectArchiver.cs 8 Jun 2006 18:43:57 -0000 1.3 *************** *** 64,80 **** object returnValue = null; ! try ! { ! ObjectArchiver.stream = new FileStream( ! fullPath, ! FileMode.Open, ! FileAccess.Read, ! FileShare.None); ! returnValue = ObjectArchiver.formatter.Deserialize(stream); ! } ! finally ! { ! ObjectArchiver.stream.Close(); ! } return returnValue; } --- 64,85 ---- object returnValue = null; ! try ! { ! ObjectArchiver.stream = new FileStream( ! fullPath, ! FileMode.Open, ! FileAccess.Read, ! FileShare.None); ! returnValue = ObjectArchiver.formatter.Deserialize(stream); ! } ! catch( Exception ex ) ! { ! string stringForBreakpoint = ex.Message; ! stringForBreakpoint = stringForBreakpoint; ! } ! finally ! { ! ObjectArchiver.stream.Close(); ! } return returnValue; } |