[Mono-dev] Problems with FileStream.Lock();

Terry Watts terry.terrywatts.com at gmail.com
Tue Jan 8 20:52:04 UTC 2013


I have looked at the exception under the debugger, that's why "E" is in the
catch{ Exception E}. The exception thrown is a "lock violation"; not a "Not
Supported" exception.

Regards Terry
 On Jan 9, 2013 7:10 AM, "Marcel Hellwig" <keks at cookiesoft.de> wrote:

>  Hi,
>
> I think your worst mistake you do is on this line
>
> Am 07.01.2013 22:50, schrieb Terry-Watts.com:
>
> ** try { base.Lock( 0, Int64.MaxValue ); break; } catch( Exception E ) {
> Thread.Sleep( SleepCount++ ); } }**
>
> You catch *all* exceptions. This is horrible. You should definitely
> specify your exception you except (haha). You also should look what kind of
> exception was thrown, maybe a NotSupported (on this platform) exception
> would be fine, else file a bug, that it should be done, cause it's not
> supported by android (regarding to Rafael Teixeira)
>
> Regards,
> Marcel
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130109/10fee77d/attachment.html>


More information about the Mono-devel-list mailing list