[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #11403] Pnet does not disallowe closing streams
From: |
Marcus Urban |
Subject: |
[Pnet-developers] [bugs #11403] Pnet does not disallowe closing streams that are connected to the "real" console |
Date: |
Mon, 27 Dec 2004 04:31:13 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.3; Linux 2.4.21-144-athlon; X11; i686; en_US) (KHTML, like Gecko) |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[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: None
Privacy: Public
Assigned to: None
Status: Open
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()
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&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/
- [Pnet-developers] [bugs #11403] Pnet does not disallowe closing streams that are connected to the "real" console,
Marcus Urban <=