[mono-vb] "Internal compiler error" and then "Unexpected error: Argument is out of range."

Rolf Bjarne Kvinge rolf at xamarin.com
Fri Jan 17 16:54:38 UTC 2014


Hi,


On Fri, Jan 17, 2014 at 5:41 PM, cris70 <criguada+mono at gmail.com> wrote:

> Hi all,
> I am new to the list and to MonoDevelop.
>
> I am trying to port a project of mine that was developed on Windows with
> Visual Studio 2008.
> The project is quite mature (it has been in production for four years now)
> and is working very well in the native environment.
>
> Trying to build it under MonoDevelop I have these errors that got me
> stumped:
>
> /home/cristiano/Projects/RTChecker/Form1.vb (1000,57): error VBNC99999: Internal compiler error close to this location
> /home/cristiano/Projects/RTChecker/Form1.vb (1000,64): error VBNC99999: Internal compiler error close to this location
> /home/cristiano/Projects/RTChecker/Form1.vb (1000,83): error VBNC99999: Internal compiler error close to this location
> : error VBNC99999: Unexpected error: Argument is out of range.
> 		Parameter name: index
> 		at vbnc.PropertyGroupClassification.ResolveGroup (vbnc.ArgumentList SourceParameters) [0x0028e] in /build/src/mono-basic-2.10/vbnc/vbnc/source/Expressions/Classifications/PropertyGroupClassification.vb:103
> 		at vbnc.InvocationOrIndexExpression.ResolvePropertyGroupInvocation () [0x0001c] in /build/src/mono-basic-2.10/vbnc/vbnc/source/Expressions/InvocationOrIndexExpression.vb:462
> 		at vbnc.InvocationOrIndexExpression.ResolveExpressionInternal (vbnc.ResolveInfo Info) [0x004c9] in /build/src/mono-basic-2.10/vbnc/vbnc/source/Expressions/InvocationOrIndexExpression.vb:297
> 		at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo) [0x00011] in /build/src/mono-basic-2.10/vbnc/vbnc/source/Expressions/Expression.vb:221
> 		Compilation took 00:00:01.0186510
> 	Task "Vbc" execution -- FAILED
>
>
> Here is code around row 1000 (this sub starts at 999):
>
>     Private Sub QMenu_OnClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
>         If ToolStripMenuItem12.DropDownItems.Item(sender.Text).Checked = True Then
>             ToolStripMenuItem12.DropDownItems.Item(sender.Text).Checked = False
>             If My.Settings.CodeScelte.Contains(sender.Text) Then My.Settings.CodeScelte.Remove(sender.Text)
>         Else
>             ToolStripMenuItem12.DropDownItems.Item(sender.Text).Checked = True
>             If Not My.Settings.CodeScelte.Contains(sender.Text) Then My.Settings.CodeScelte.Add(sender.Text)
>         End If
>     End Sub
>
>
> I cannot see where the "index" parameter is, nor what should be wrong on
> row 1000.


The 'index' parameter is a parameter in the VB compiler (vbnc), it's not
referring to anything in your application.

It looks like your code crashed the compiler. Unfortunately your code
sample is not enough (it looks like ToolStripMenuItem12 is a
System.Windows.Forms.ToolStripMenuItem, but then the return value from
DropDownItems.Item(sender.Text) does not have a Checked property.

Would it be possible to get a complete test project that I can execute to
see exactly what's going on?

Rolf



>
>
> Here is my environment:
>
> === MonoDevelop ===
>
> Version 4.0.13
> Installation UUID: 83650503-e294-4095-8454-1422c7aa4f89
> Runtime:
> 	Mono 3.2.3 (tarball Sun Sep 22 20:38:43 UTC 2013) (64-bit)
> 	GTK+ 2.24.22 theme: oxygen-gtk
> 	GTK# (2.12.0.0)
>
> === Build Information ===
>
> Git revision:
> Build date: 2013-10-27 17:24:08+0000
>
> === Operating System ===
>
> Linux
> Linux sodba003.d1.bkd 3.12.6-1-MANJARO #1 SMP PREEMPT Sat Dec 21 01:38:09 UTC 2013 x86_64 GNU/Linux
>
>
>
> I hope someone can help me.
>
> Bye
> Cris
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Internal-compiler-error-and-then-Unexpected-error-Argument-is-out-of-range-tp4661737.html
> Sent from the Mono - VB mailing list archive at Nabble.com.
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb
>



-- 
* Microsoft and Xamarin Partner Globally.  Learn more.
<http://blog.xamarin.com/microsoft-and-xamarin-partner-globally/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-vb/attachments/20140117/fbac6e67/attachment.html>


More information about the Mono-vb mailing list