[Mono-dev] empty URI error
Marko Žmak
xmak at studioartlan.com
Thu Dec 6 02:46:45 EST 2007
I found some strange behaviour in "System.Uri" class in mono. Executing
this code:
new System.Uri("", System.UriKind.Relative);
throws "Invalid URI format" exception and the applicatin hangs.
Furthermore, executing this:
new System.Uri("X", System.UriKind.Relative);
also throws the same exception. (you can replace "X" by any other
letter, it's important that it has only one character)
Since when running the same code in Windows .NET the exception is not
thrown, and everything works OK, could this be a bug in Mono?
P.S. This is a pretty seroius error for me, since the code generator in
SharpDevelop (which I use) generates exactly this kind of code (wtih
empty string for URI) for some objects.
--
Marko Žmak, dipl.ing.mat.
Mob: +385 98 212 801
Email: xmak at studioartlan.com
Web: http://www.studioartlan.com/
More information about the Mono-devel-list
mailing list