VB.NET CF 2-dim string array causes System.NotSupportedException

  • Thread starter Thread starter Matijaz
  • Start date Start date
M

Matijaz

Hello,
I've got this strange error. When I try to load some data to string array at
the start I got System.NotSupportedException. I can't set any break points -
they seem to be useless and i can't get any console output because there's
no possibility to step into the problematic function code. Here's an
example:

A. Declaration
Public Const SERVICEMENU_COUNT As Integer = 14
Public arrServiceMenuGrid2(SERVICEMENU_COUNT - 1, 1) As
String


B. When I try to init 2-dm array like this everything runs without a
problem:

For i = 1 To UBound(arrServiceMenuGrid2, 1)
arrServiceMenuGrid2(i, 0) = ""
arrServiceMenuGrid2(i, 1) = ""
Next i

C. But when I try to set an array explicity over the index number >= 8
application crashes
arrServiceMenuGrid2(0, 0) = ""
arrServiceMenuGrid2(1, 0) = ""
[...]
' Problematic line
arrServiceMenuGrid2(8, 0) = ""


What could be the cause? Why can't I run debugger?
Anly help appreciated.

Regards
Maciek Regulski
 
What Alex is implying, if you are, is that there is a known issue with one
of the JIT compilers and a 64KB limit as described here:
http://www.danielmoth.com/Blog/2004/12/jit.html

Try the code on an ARM device or shorten the method.

If our guess is not what causes your problem, please post a short and
complete sample.

Cheers
Daniel
 
Back
Top