[Mono-dev] Bug 383909 - PathTooLongException not thrown by System.IO.DirectoryInfo() on MonoWindows

Jérôme De Cuyper jerome.decuyper at gmail.com
Mon Dec 20 17:14:09 EST 2010


Rodrigo kindly helped me analyzing bug
383909<https://bugzilla.novell.com/show_bug.cgi?id=383909>. I
got to the following status:

*Using the .net framework*: if you create a DirectoryInfo object with a
directory name larger than 248 chars, a PathTooLongException is thrown (even
of no actual directory gets created).

*Using mono*: no PathTooLongException is thrown. However, since no actual
directory is created, there is still no syscall errors to catch. That means
that, at the C level, a static validation should be added for windows only.
I think that would be the correct way to solve it. Should I implement it
this way? Is it possible to propagate an exception from the C level into a
.NET exception?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20101220/08323f09/attachment-0001.html 


More information about the Mono-devel-list mailing list