mail-archives/mono-bugs/2010-October/105315.html

134 строки
4.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 647948] null stream.BaseStream Close/Dispose not throwing exception (unlike MS .Net)
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20647948%5D%20null%20stream.BaseStream%20Close/Dispose%20not%0A%20throwing%20exception%20%28unlike%20MS%20.Net%29&In-Reply-To=bug-647948-28286%40http.bugzilla.novell.com/">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="105169.html">
<LINK REL="Next" HREF="105349.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 647948] null stream.BaseStream Close/Dispose not throwing exception (unlike MS .Net)</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20647948%5D%20null%20stream.BaseStream%20Close/Dispose%20not%0A%20throwing%20exception%20%28unlike%20MS%20.Net%29&In-Reply-To=bug-647948-28286%40http.bugzilla.novell.com/"
TITLE="[Mono-bugs] [Bug 647948] null stream.BaseStream Close/Dispose not throwing exception (unlike MS .Net)">bugzilla_noreply at novell.com
</A><BR>
<I>Sat Oct 23 07:23:49 EDT 2010</I>
<P><UL>
<LI>Previous message: <A HREF="105169.html">[Mono-bugs] [Bug 647948] null stream.BaseStream Close/Dispose not throwing exception (unlike MS .Net)
</A></li>
<LI>Next message: <A HREF="105349.html">[Mono-bugs] [Bug 647948] null stream.BaseStream Close/Dispose not throwing exception (unlike MS .Net)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#105315">[ date ]</a>
<a href="thread.html#105315">[ thread ]</a>
<a href="subject.html#105315">[ subject ]</a>
<a href="author.html#105315">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=647948">https://bugzilla.novell.com/show_bug.cgi?id=647948</A>
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=647948#c2">https://bugzilla.novell.com/show_bug.cgi?id=647948#c2</A>
--- Comment #2 from Hin-Tak Leung &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">htl10 at users.sourceforge.net</A>&gt; 2010-10-23 11:23:49 UTC ---
Created an attachment (id=396675)
--&gt; (<A HREF="http://bugzilla.novell.com/attachment.cgi?id=396675">http://bugzilla.novell.com/attachment.cgi?id=396675</A>)
source code of a test program
gmcs Carrot.cs
&quot;mono ./Carrot.exe&quot; finishes, but windows .net does this:
-------------
Unhandled Exception: System.ObjectDisposedException: Can not access a closed
Stream.
at System.IO.Compression.GZipStream.Flush()
at System.IO.BinaryWriter.Flush()
at System.IO.BinaryWriter.get_BaseStream()
at test.Carrot.Close()
at test.Carrot.Main(String[] args)
-----------------
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="105169.html">[Mono-bugs] [Bug 647948] null stream.BaseStream Close/Dispose not throwing exception (unlike MS .Net)
</A></li>
<LI>Next message: <A HREF="105349.html">[Mono-bugs] [Bug 647948] null stream.BaseStream Close/Dispose not throwing exception (unlike MS .Net)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#105315">[ date ]</a>
<a href="thread.html#105315">[ thread ]</a>
<a href="subject.html#105315">[ subject ]</a>
<a href="author.html#105315">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>