[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
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list