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

Marcel Hellwig keks at cookiesoft.de
Tue Jan 8 20:09:50 UTC 2013


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(ExceptionE
> ){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)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130108/fbaf1a4e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130108/fbaf1a4e/attachment.pgp>

More information about the Mono-devel-list mailing list