[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
Thu, 28 Apr 2005 17:36:54 -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.


--- shadow/74732	2005-04-28 17:11:59.000000000 -0400
+++ shadow/74732.tmp.1999	2005-04-28 17:36:54.000000000 -0400
@@ -183,6 +183,22 @@
 ------- Additional Comments From flashdict@gmail.com  2005-04-28 17:11 -------
 Created an attachment (id=15031)
 Improved patch - reset pid on shared re-access
+------- Additional Comments From flashdict@gmail.com  2005-04-28 17:36 -------
+Darn.  I'm an idiot.  But I'm an enlightened idiot now.  Forget about
+these meager attempts, they just don't cover all the bases, which is
+what Dick tried to point out to me from the beginning.  
+For the less-enlightened-than-me (if such a one exists), this approach
+doesn't handle the case where several processes have the file open as
+shared, with the pid stamp of the latest in the _WapiFileHandle, then
+the latest process (or thread) crashes.  In this case, another process
+can reopen the file unshared, and even truncate it.
+Feh.  I'm going to slink on out of here now.   Maybe the car wash
+needs a good hand.