[Mono-dev] empty URI error

Gert Driesen gert.driesen at telenet.be
Thu Dec 6 03:27:34 EST 2007


Marko,

Please submit a bug report for this.

Gert 

-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Marko Žmak
Sent: donderdag 6 december 2007 8:47
To: mono-devel-list at lists.ximian.com
Subject: [Mono-dev] empty URI error

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/

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




More information about the Mono-devel-list mailing list