[MonoDevelop] exception thrown with simple VBA program

Rolf Bjarne Kvinge rolf at xamarin.com
Tue May 29 16:08:08 UTC 2012


Hi,

On Tue, May 29, 2012 at 3:45 PM, Clark linuxguy <cgable2003 at gmail.com> wrote:
> I wrote a simple program for calculating factorials:
> http://codepad.org/49XoUmJw
> It compiles file with vbnc
> when I run it it crashes with an exception:
>
> ./factorial.exe
> Unhandled Exception: System.InvalidProgramException: Invalid IL code in
> Application:Main (): IL_0000: ldarg.0
>
> Does anyone know what is wrong or how to fix it?

Your Factorial method must be Shared.

Rolf


>
> I am using vbnc version 0.0.0.5917
>
> Mono JIT compiler version 2.6.7 (Debian 2.6.7-5)
> Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
> TLS:           __thread
> GC:            Included Boehm (with typed GC and Parallel Mark)
> SIGSEGV:       altstack
> Notifications: epoll
> Architecture:  amd64
> Disabled:      none
>
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>


More information about the Monodevelop-list mailing list