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: [EMAIL PROTECTED]
Web: http://www.studioartlan.com/

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to