[Mono-list] Can't open a StreamWritter with a file created by File.Create
HannibAl Bundie
hannibalbundie@hotmail.com
Wed, 02 Jun 2004 16:39:26 +0200
Hi,
With the mono beta 2 I'm not able to create a file with File.Create and
then, open a StreamWritter on it.
For example a simple program like this throws the error "Unhandled
Exception: System.IO.IOException: Win32 IO returned ERROR_SHARING_VIOLATION.
Path: test-file" everytime I run it :
using System;
using System.IO;
namespace Test {
public class test {
public test()
{
File.Create("test-file");
StreamWriter sw = new StreamWriter("test-file");
}
static void Main (string[] args)
{
new test();
}
}
}
But this kind of operation works perfectly on mono beta 1.
So I would like to know if this bug is a regression (what regression !!) or
just a bizzarery of my computer.
Accordingly, I would be grateful if someone could run the little program
above and tell me if he has the same result.
In this case I'll open a bug on bugzilla, and in the other case any help
would be appreciated :)
Thanks in advance
_________________________________________________________________
Bloquez les fenêtres pop-up, c'est gratuit ! http://toolbar.msn.fr