Thanks Nic, added your findings to the bugzilla entry - they might come in
handy while debugging this ;-)

Jeff

On Sun, Sep 4, 2011 at 6:14 AM, Nic Wise <n...@fastchicken.co.nz> wrote:

> Interestingly, this works
>
> public static decimal DecimalFromDB(object theValue, decimal
> dDefaultValue = Decimal.Zero)
>
> Problem converting for (int)0 to (decimal)0??
>
> :)
>
> N
>
>
>
>
> On Sun, Sep 4, 2011 at 01:45, competent_tech
> <xamarinfor...@competent.com> wrote:
> > After a process of elimination (removing files until I found the one
> causing
> > the issue, then removing or adjusting methods), I was able to track down
> the
> > culprit line of code:
> >
> >        public static decimal DecimalFromDB(object theValue, decimal
> > dDefaultValue = 0)
> >
> > Removing the default value fixes the issue. I verified that it was this
> line
> > and this line only that caused the issue by creating the following class
> > which reproduces the problem as the only class in a test project:
> >
> >
> > using System;
> >
> > namespace Test
> > {
> >    public class TestClass
> >    {
> >        public TestClass ()
> >        {
> >        }
> >        public static decimal DecimalFromDB(object theValue, decimal
> > dDefaultValue = 0)
> >        {
> >            return dDefaultValue;
> >        }
> >
> >    }
> > }
> >
> >
> > --
> > View this message in context:
> http://monotouch.2284126.n4.nabble.com/The-compiler-appears-to-have-crashed-tp3788615p3788649.html
> > Sent from the MonoTouch mailing list archive at Nabble.com.
> > _______________________________________________
> > MonoTouch mailing list
> > MonoTouch@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monotouch
> >
>
>
>
> --
> Nic Wise
> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
> b. http://www.fastchicken.co.nz/
>
> mobileAgent (for FreeAgent): get your accounts in your pocket.
> http://goo.gl/IuBU
> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
> London Bike App: Find the nearest Boris Bike, and get riding!
> http://goo.gl/Icp2
> _______________________________________________
> MonoTouch mailing list
> MonoTouch@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to