rado_ap
9 years agoVisitor
Can't start a new scene
Hello, I just started developing for Roku. I'm using Scene Graph and I managed to do a simple registration screen. Now I want to show a second scene from the first one. I figured out that I can't do this on render thread, so what I'm doing is:
m.testTask = CreateObject("roSGNode", "CreateScreen")
m.testTask.control = "RUN"
and in the xml of the this task node:
screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
screen.setMessagePort(m.port)
scene = screen.CreateScene("SecondScene")
screen.show()
The second scene is defined in its own xml file. Sadly when executed, the app crashes with "Execution timeout (runtime error &h23)" at the line of screen.show()
Can anyone point what am I doing wrong please?
m.testTask = CreateObject("roSGNode", "CreateScreen")
m.testTask.control = "RUN"
and in the xml of the this task node:
screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
screen.setMessagePort(m.port)
scene = screen.CreateScene("SecondScene")
screen.show()
The second scene is defined in its own xml file. Sadly when executed, the app crashes with "Execution timeout (runtime error &h23)" at the line of screen.show()
Can anyone point what am I doing wrong please?