Acknowledged

sdk 4.0.3/4.x problems with arrays on some devices

Error Name: Unhandled Exception
Devices:
    Venu® Sq. Music Edition: 2.60
    Venu™: 5.90
    Venu® Sq. Music Edition: 2.70
App Versions: 1.15.0
Languages: chs, dut, eng, jpn
code:
const D_NOW        =    0, D_PHR         =    1, ....;
mDr=[findDrawableById("drawable1",...)];
mDr[D_NOW].mScrolStart = 0;//error...

Error Name: Unhandled Exception
Devices:
    Venu® Sq. Music Edition: 2.70
    Venu® Sq: 2.70
App Versions: 1.15.0
Languages: dut, tur
code:
enum//global
{
...,
W_TC, //3
...
W_NUM//22
}
var PAL_COL, gWD ; //global
enum
{
    P_GX,    //0
    P_GG,   //1
    ...
}

PAL_COL=
[
0x0000FF,
0x005500
,
...
];

gWD  = new[W_NUM];
gWD[W_TC] = PAL_COL[P_GG];//error

  • Probably problem is connected with declaration and initialisation especially for members but also inside functions.

    class....

    {

     var mX, mY=3, mZ;

    function f()

    {

    var x, y=4,z;

    ...

    }

    }

  • an next

    Error Name: Invalid Value
        Forerunner® 245 Music: 5.70
        vĂ­voactive® 3: 7.70
    Languages: fre, tha
    Backtrace:
        PSX1_Vie.updOWM:1041
        PSX1_Vie.updP:1564
        PSX1_Vie.draw:1929
    code:
    gWD[W_TT] = v;

    but in this case is strange a lot because updOWM is called only from chkOWM and chkOWM only from onShow and onExitSleep so backtrace is missing (era mix errors or there is problem with compilation/symbols so strange  errors).

    btw. on my f6pro no errors at all - so code is good and wf run well as for all devices on sim