[Mono-list] METHOD_HEADER_TINY_FORMAT1

Rhys Weatherley rweather@zip.com.au
Sat, 21 Jul 2001 11:03:38 +1000


> > Behalf Of Miguel de Icaza
>
> > I wonder if mmap() is supported at all by Cygwin.  I am going to try
> > this next.
> >
> > The code has special support for dealing with failing mmaps by loading
> > the file into memory.  Can you single step through raw_buffer_load and
> > see what it does?
>
> Yes.  I just got back to this.  I modified raw_buffer_load() to fail the
> mmap() call.  The alternate code which allocs some memory and loads it with
> read() works fine.  The assembly loads OK and the SIGSEGV is gone.

I found mmap() to be flaky in Cygwin when I did something similar
for Portable.NET several months ago.  However, you do have access
to the full Windows API under Cygwin, so it is easy to get around
this problem using CreateFileMapping and friends.  Much more
reliable, and works quite well.

Cheers,

Rhys.