[Mono-list] Re: about your file-io.cs changes...

Dan Lewis dihlewis@yahoo.co.uk
20 Mar 2002 10:31:33 +0000


Ok, that's two nights in a row now I've broken the metadata lib. I'm
officially in the sin bin. I've learned to test on Linux before
committing, but unfortunately not to do "make install" before testing :[

Flush shouldn't throw an exception (probably shouldn't even be called)
for readonly file handles. I've taken the raise statement out of
file-io.c as a quick fix, though I need to do a few more experiments
with Windows' FileStream before tightening up the behaviour of our
corlib code.

Thanks again being patient with my incompetence, everyone :)

Dan.


On Wed, 2002-03-20 at 05:15, Adam Treat wrote:
> Hello Dan,
> 
> I think your file-io.cs changes are having some unintended consequences.  I 
> tried compiling a program with mcs after updating from cvs and I recieved an 
> error.  Here is what I get when I try and compile this test:
> 
> using System;
> 
> public class Hello {
>         
>         public static void Main(string[] args) {
>         
>                 Console.WriteLine("hello");
>         }
> }
> 
> 'mcs hello.cs'
> 
> Unhandled exception System.IO.IOException IO Exception.
> #0: 0x00000            in System.IO.FileStream::FileFlush ([0x811ecf8] )
> #1: 0x0000c call       in System.IO.FileStream::Flush ()
> #2: 0x00013 callvirt   in System.IO.FileStream::Dispose ([1] )
> #3: 0x00002 callvirt   in System.IO.FileStream::Close ()
> #4: 0x00063 callvirt   in Mono.CSharp.Driver::parse ([0x810b6a0] )
> #5: 0x0004c call       in Mono.CSharp.Driver::ProcessFile ([0x810b6a0] )
> #6: 0x00737 call       in Mono.CSharp.Driver::MainDriver ([0x80f36a8] )
> #7: 0x00001 call       in Mono.CSharp.Driver::Main ([0x80f36a8] )
> 
> --Adam



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com