Acknowledged

additional view.onShow()

eclipse: Version: 2022-06 (4.24.0) Build id: 20220609-1112
plugin: 4.1.2
SDK: 4.1.5
Windows 10 21H1

- run WF in sim  2022-8-15 21:57:18

- sim [settings] [low power mode] 2022-8-15 21:57:25

- sim [settings] [force onHide] 2022-8-15 21:57:30

effect:

2022-8-15 21:57:18 >view.initialize< ---- start
2022-8-15 21:57:18 >view.onShow< ---- start
2022-8-15 21:58:00 >view.onShow< ---- additional onShow no initialse

question: is it the bug on sim or the same is on device

I have strange error in low power mode:

Error Name: Unexpected Type Error
Occurrences: 4

    VenuTm: 6.90
    epixTm (Gen 2) / quatix® 7 Sapphire: 8.37, 9.22

function draw(dc)
{
    var 
	i = 0,
	v = mI_L,				//! class member, never null, array
	t = $.GLB;				//! global, settings, never null 
		
	dc.setClip(0, 0, t.screenWidth, t.screenHeight);
	do
	{
			if(v.size() == 3) /// <----------- here error from ERA
			{
			    draw_item(dc, v[0], t);
			    draw_item(dc, v[1], t);
			    draw_item(dc, v[2], t);
			}...
			
			...
			
			v = mI_R;       //! class member, never null, array
			i++;
	}while (i < 2);
}

Parents
  • After discover second onShow() I've rewritten app and no ERA error.

    So anybody who assumes flow like in documentation can meet very strange error like in my example (it's look like v/mI_L is null but it is array created in initialise and should exist always).

    Of course for app can be onHide() than second onShow() but not for WF - or there is the bug in doc.

Comment
  • After discover second onShow() I've rewritten app and no ERA error.

    So anybody who assumes flow like in documentation can meet very strange error like in my example (it's look like v/mI_L is null but it is array created in initialise and should exist always).

    Of course for app can be onHide() than second onShow() but not for WF - or there is the bug in doc.

Children
No Data