[Mono-bugs] [Bug 74732][Blo] Changed - Sharing/Access violation after exiting a running mono app with an open StreamWriter (SVN checkouts)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 26 Apr 2005 15:07:53 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by flashdict@gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74732

--- shadow/74732	2005-04-26 13:19:17.000000000 -0400
+++ shadow/74732.tmp.13252	2005-04-26 15:07:53.000000000 -0400
@@ -64,6 +64,39 @@
 ------- Additional Comments From miguel@ximian.com  2005-04-26 13:19 -------
 Am using svn from yesterday night, and am unable to reproduce this.
 
 Could you try with a new version?
 
 Am assigning to Dick that can close this bug.
+
+------- Additional Comments From flashdict@gmail.com  2005-04-26 15:07 -------
+I'm still seeing it here with r43595.  If stream file exists, and
+hasn't been properly closed due to an interrupt on the previous run
+via ordinary program exit or stream.Close(), mono throws
+System.IO.IOException sharing violation.  
+
+Turning on debugging in io-layer/io.c and running once and
+interrupting gives:
+
+
+** Message: CreateFile: Opening TestApp.log with share 0x1 and access
+0x40000000
+** Message: share_allows_open: New file!
+^C
+
+Then running again and I get
+
+** Message: CreateFile: Opening TestApp.log with share 0x1 and access
+0x40000000** Message: share_allows_open: Share mode prevents open:
+requested access: 0x40000000, file has sharing: 0x1
+** Message: share_allows_open: Share mode prevents open: requested
+access: 0x40000000, file has sharing: 0x1
+** Message: share_allows_open: Share mode prevents open: requested
+access: 0x40000000, file has sharing: 0x1
+
+Unhandled Exception: System.IO.IOException: Sharing violation on path
+TestApp.log
+
+
+
+
+