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

Re: VB.NET CF 2-dim string array causes System.NotSupportedException by Alex

Alex
Wed May 25 13:38:48 CDT 2005

Are you doing this inside a big (really big) function?

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Matijaz" <mathiasmaupairc.pl@killaspam.org> wrote in message
news:d71v8b$iv0$1@nemesis.news.tpi.pl...
> 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
>
>


Re: VB.NET CF 2-dim string array causes System.NotSupportedException by Daniel

Daniel
Fri May 27 15:23:41 CDT 2005

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
--
http://www.danielmoth.com/Blog/


"Matijaz" <mathiasmaupairc.pl@killaspam.org> wrote in message
news:d71v8b$iv0$1@nemesis.news.tpi.pl...
> 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
>
>