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

126 строки
3.9 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="105349.html">
<LINK REL="Next" HREF="105404.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>Sun Oct 24 19:51:44 EDT 2010</I>
<P><UL>
<LI>Previous message: <A HREF="105349.html">[Mono-bugs] [Bug 647948] null stream.BaseStream Close/Dispose not throwing exception (unlike MS .Net)
</A></li>
<LI>Next message: <A HREF="105404.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#105352">[ date ]</a>
<a href="thread.html#105352">[ thread ]</a>
<a href="subject.html#105352">[ subject ]</a>
<a href="author.html#105352">[ 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#c4">https://bugzilla.novell.com/show_bug.cgi?id=647948#c4</A>
--- Comment #4 from Hin-Tak Leung &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">htl10 at users.sourceforge.net</A>&gt; 2010-10-24 23:51:43 UTC ---
Does System.IO.StreamWriter need a similiar Flush() in get_BaseStream() ?
I wrote that faulty code because I was having problems with incomplete output
of some compressed output streams (in mono). According to MSDN (or my
understanding of my reading of it), Close() at the very top should flush and
recursively flush and close downward also so manually invoking
BaseStream.Flush() shouldn't be needed... what's the &quot;authoritative&quot; answer?
Thanks a lot.
--
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="105349.html">[Mono-bugs] [Bug 647948] null stream.BaseStream Close/Dispose not throwing exception (unlike MS .Net)
</A></li>
<LI>Next message: <A HREF="105404.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#105352">[ date ]</a>
<a href="thread.html#105352">[ thread ]</a>
<a href="subject.html#105352">[ subject ]</a>
<a href="author.html#105352">[ 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>