[Mono-list] different filestream behavior of mono and .net
Dick Porter
dick@ximian.com
16 Jun 2003 14:07:46 +0100
On Mon, 2003-06-16 at 10:05, J=F6rg W=FCrzer wrote:
> hello mono community,
>=20
> i'm porting some com classes to win/.net in our company. therefore im
> porting them so, they work with mono and .net. now i've noticed some
> differences in behavior between mono and .net.
>=20
> system: redhat 8, mono 0.24-2 (rpm install).
>=20
> following code compiled with .net doesn't run under mono/linux but under
> win/.net.
Nice to see ms following their own documentation:
I quote from the .net 1.1 docs - from System.IO.FileStream.ctor()
"FileShare.Read is the default for those FileStream constructors without
a FileShare parameter." and from System.IO.FileMode "FileMode.Append can
only be used in conjunction with FileAccess.Write. Any attempt to read
fails and throws an ArgumentException."
Some quick testing shows that the FileStream is given Write access by
default.
Please add this to bugzilla so we don't forget about it.
Thanks,
- Dick
> ** (process:1983): WARNING **: Shared memory sanity check failed.
>=20
> ** (process:1983): WARNING **: Failed to attach shared memory! Falling ba=
ck
> to non-shared handles
"rm -r ~/.wapi" to shut this warning up