[Mono-list] Concatenation Bug

Daniel Carrera dcarrera@math.toronto.edu
Thu, 4 Apr 2002 18:47:05 -0500 (EST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---2140912637-930961605-1017964025=:184450
Content-Type: TEXT/PLAIN; charset=US-ASCII

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.

---2140912637-930961605-1017964025=:184450
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ConcatTest.cs"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.A41.4.30.0204041847050.184450@coxeter.math.toronto.edu>
Content-Description: C# file
Content-Disposition: attachment; filename="ConcatTest.cs"

Y2xhc3MgTW9uZXkgew0KCXByaXZhdGUgZG91YmxlIEFtb3VudDsNCglwcml2
YXRlIHN0cmluZyBDdXJyZW5jeTsNCgkNCglwdWJsaWMgTW9uZXkoZG91Ymxl
IGFtb3VudCxzdHJpbmcgY3VycmVuY3kpIHsNCgkvL3B1YmxpYyBNb25leShz
dHJpbmcgY3VycmVuY3kpIHsNCgkJQW1vdW50ICAgPSBhbW91bnQ7IA0KCQlD
dXJyZW5jeSA9IGN1cnJlbmN5Ow0KCX0NCglwdWJsaWMgc3RyaW5nIGdldEN1
cnJlbmN5KCkgew0KCQlyZXR1cm4gQ3VycmVuY3k7DQoJfQ0KfQ0KDQpjbGFz
cyBUZXN0TW9uZXkgew0KCQ0KCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkg
ew0KCQlNb25leSBtID0gbmV3IE1vbmV5KDIwMCwiQ0FEIik7DQoJCS8vTW9u
ZXkgbSA9IG5ldyBNb25leSgiQ0FEIik7DQoJCVN5c3RlbS5Db25zb2xlLldy
aXRlTGluZSgiQ3VycmVuY3k6ICAiICsgbS5nZXRDdXJyZW5jeSgpKTsNCgl9
DQp9
---2140912637-930961605-1017964025=:184450
Content-Type: APPLICATION/x-msdos-program; name="ConcatTest.exe"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.A41.4.30.0204041847051.184450@coxeter.math.toronto.edu>
Content-Description: mcs compiled binary
Content-Disposition: attachment; filename="ConcatTest.exe"

TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAgAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFt
IGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAABQRQAATAEB
AB7VrDwAAAAAAAAAAOAADgELAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AABAAAAgAAAAAgAABAAAAAAAAAAEAAAAAAAAAACAAAAAAgAAAAAAAAMAAAAA
ABAAABAAAAAAEAAAEAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
ACAAAEgAAAAAAAAAAAAAAC50ZXh0AAAA0wIAAAAgAAAABAAAAAIAAAAAAAAA
AAAAAAAAACAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAA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