dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #11403] Pnet does not disallowe closing streams


From: Deryk Robosson
Subject: [Pnet-developers] [bugs #11403] Pnet does not disallowe closing streams that are connected to the "real" console
Date: Tue, 28 Dec 2004 03:35:29 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217 Galeon/1.3.18

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.

/**************************************************************************/
[bugs #11403] Latest Modifications:

Changes by: 
                Deryk Robosson <address@hidden>
'Date: 
                Tue 12/28/2004 at 03:35 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
fixed in cvs






/**************************************************************************/
[bugs #11403] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11403>
Project: DotGNU Portable.NET
Submitted by: Marcus Urban
On: Mon 12/27/2004 at 04:31

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  Fixed
Privacy:  Public
Assigned to:  None
Status:  Closed


Summary:  Pnet does not disallowe closing streams that are connected to the 
"real" console

Original Submission:  On MS.NET, attempts to close the console device are 
ignored. By "console device," I mean output directed to a terminal. This is in 
contrast to the situation where standard output has been redirected to a file 
or pipe. To mimic MS's behavior, StreamWriters would need to check whether 
their streams correspond to "real" files or pipes or to a physical console.

The test case below succeeds on MS but fails under Pnet with the exception

Uncaught exception: System.ObjectDisposedException: Stream is already closed: 
Exception_Disposed
        at System.IO.StreamWriter.Write(String) in 
./System/IO/StreamWriter.cs:239
        at System.IO.TextWriter.WriteLine(String) in 
./System/IO/TextWriter.cs:288
        at System.IO.SyncTextWriter.WriteLine(String) in 
./System/IO/TextWriter.cs:652
        at System.Console.WriteLine(String) in ./System/Console.cs:425
        at Testing.Main()


Follow-up Comments
------------------


-------------------------------------------------------
Date: Tue 12/28/2004 at 03:35       By: Deryk Robosson <drobosson>
fixed in cvs






File Attachments
-------------------

-------------------------------------------------------
Date: Mon 12/27/2004 at 04:31  Name: streamclose.cs  Size: 142B   By: mathpup
Test case
http://savannah.gnu.org/bugs/download.php?item_id=11403&amp;item_file_id=1999






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11403>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]