On Jan 8, 2013, at 4:44 PM, Terry-Watts.com <te...@terry-watts.com> wrote:
> I have check the Android API docs and file locking has been available on 
> channels since API Level 1.

"on channels"?

Anyway, quick perusal of the source shows that FileStream.Lock() is fcntl(2):

        
https://github.com/mono/mono/blob/master/mcs/class/corlib/System.IO/FileStream.cs#L875
        
https://github.com/mono/mono/blob/master/mcs/class/corlib/System.IO/MonoIO.cs#L414
        https://github.com/mono/mono/blob/master/mono/metadata/file-io.c#L1191
        https://github.com/mono/mono/blob/master/mono/io-layer/locking.c#L117
        https://github.com/mono/mono/blob/master/mono/io-layer/locking.c#L26

So, why is fcntl(2) failing? I don't know, you're swallowing the exception.

 - Jon

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to