[Mono-list] strange error while testing Convert
Krister Hansson
ds99krha@thn.htu.se
Fri, 10 May 2002 12:17:28 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0015_01C1F81C.A6B66AB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
=20
Got a newbe question:
If the MSDN specifcation says this for parameters to a method.
--------
Parameters
value=20
An Object that implements the IConvertible interface
--------
Does that mean that I can send anything in to the method that implements =
IConvertible? Int, long, char and so on.
If so how does the runtime decide when to call what method if the method =
is overloaded like:
method(object value){}
method(int myInt){}
if you send in an int?
Ran in to a problem when I was writing a test for Convert in namespace =
System. The methods FromBase64CharArray and FromBase64String boath =
strange error when using mono in cygwin but not when running in windows. =
I get a popup saying
**ERROR**: file unicode.c line 208 (ves_icall_iconv_new_decoder): =
assertion failed: (cd !=3D (iconv_t)-1) aborting...
don't know if leaves the same messege if you run mono on linux...but I =
would guess it does.
//Krister
------=_NextPart_000_0015_01C1F81C.A6B66AB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff><FONT face=3DArial size=3D2> </FONT>
<DIV class=3DdtH4>Got a newbe question:</DIV>
<DIV class=3DdtH4>If the MSDN specifcation says this for parameters to a =
method.</DIV>
<DIV class=3DdtH4>--------</DIV>
<DIV class=3DdtH4>Parameters</DIV>
<DIV><I>value</I> </DIV>
<DIV>An Object that implements the IConvertible interface</DIV>
<DIV>--------</DIV>
<DIV>Does that mean that I can send anything in to the method that =
implements=20
IConvertible? Int, long, char and so on.</DIV>
<DIV> </DIV>
<DIV>If so how does the runtime decide when to call what method if the =
method is=20
overloaded like:</DIV>
<DIV>method(object value){}</DIV>
<DIV>method(int myInt){}</DIV>
<DIV>if you send in an int?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Ran in to a problem when I was writing a test for Convert in =
namespace=20
System. The methods FromBase64CharArray and FromBase64String boath =
strange=20
error when using mono in cygwin but not when running in windows. I =
get a=20
popup saying</DIV>
<DIV> </DIV>
<DIV>**ERROR**: file unicode.c line 208 (ves_icall_iconv_new_decoder): =
assertion=20
failed: (cd !=3D (iconv_t)-1) aborting...</DIV>
<DIV> </DIV>
<DIV>don't know if leaves the same messege if you run mono on =
linux...but I=20
would guess it does.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>//Krister</DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0015_01C1F81C.A6B66AB0--