[Mono-list] Concatenation Bug
Daniel Carrera
dcarrera@math.toronto.edu
Fri, 5 Apr 2002 10:19:24 -0500 (EST)
GGRRR!!!!!
Now I can't compile annything at all!!
I ran mono-build.sh to update everything and now this happens:
$ mcs HelloWorld.cs
Can not open image /home/daniel/install/bin/mcs.exe
If I replace /home/daniel/install/bin/mcs.exe by the image I had before I
get:
$ mcs HelloWorld.cs
(process:13290): ** WARNING **: cant resolve internal call to
"System.MonoType::assQualifiedName"
(process:13290): ** WARNING **: unhandled exception
System.NotImplementedException: "The requested feature is not yet
implemented"
in (unmanaged) System.MonoType:assQualifiedName ()
in System.MonoType:get_FullName ()
in Mono.CSharp.RootContext:LookupType ()
in Mono.CSharp.Method:GetReturnType ()
in Mono.CSharp.Method:Define ()
in Mono.CSharp.TypeContainer:DefineMembers ()
in Mono.CSharp.TypeContainer:Define ()
in Mono.CSharp.RootContext:PopulateTypes ()
in Mono.CSharp.Driver:MainDriver ()
in Mono.CSharp.Driver:Main ()
Help!
Daniel.
On 5 Apr 2002, Dietmar Maurer wrote:
> Hi Daniel,
>
> The bug was in mono and is now fixed in CVS.
>
> - Dietmar
>
>
> On Fri, 2002-04-05 at 01:47, Daniel Carrera wrote:
> > Hello,
> >
> > I still can't fix the problem. There is a bug somewhere and I don't think
> > that it's been fixed. I have dowloaded the latest CVS for mono and it
> > dind't help. I built mcs myself and it didn't help.
> >
> > Could someone look at my files. I'm including both the .cs and the .exe
> > files. I'd appreciate it if someone could do any of:
> >
> > a.- Try running my .exe file and see if you get the error.
> > b.- Try compiling my .cs file and see if you get the error when you run
> > it.
> > c.- Do a. and b. under Windows and see if it makes any difference.
> >
> > I don't have Windows myself, so I can't try this with the Microsoft SDK.
> >
> >
> > For reference, the error I get is:
> >
> > $ mono ConcatTest.exe
> >
> > (process:20458): ** WARNING **: unhandled exception
> > System.OverflowException: "Number overflow"
> > in System.String:.ctor ()
> > in System.String:Concat ()
> > in .TestMoney:Main ()
> >
> >
> >
> > I'd greatly appreciate some help.
> >
> > Daniel.
> > ----
> >
>
> > class Money {
> > private double Amount;
> > private string Currency;
> >
> > public Money(double amount,string currency) {
> > //public Money(string currency) {
> > Amount = amount;
> > Currency = currency;
> > }
> > public string getCurrency() {
> > return Currency;
> > }
> > }
> >
> > class TestMoney {
> >
> > public static void Main() {
> > Money m = new Money(200,"CAD");
> > //Money m = new Money("CAD");
> > System.Console.WriteLine("Currency: " + m.getCurrency());
> > }
> > }
>
>