ev3 program doesn't run directly from brick
Hi, I'm kinda new in programming with robotic, I have an ev3 robot (using robotc 4.10 beta and the last ev3 robotc firmware) and when I launch a program directly from robotc it works well, but when I try to start it directly from the brick, it doesn't start, giving e.g:
(Sometimes the "Exeption Type" like as the "Task ID" are different from this).
The code i tried to use is very simple:
The robot should just move until the IR sensor has a value < 10, than move backward for 1 sec start all again. It works well if started from robotc but not directly by selecting the program from the brick, like said before. Any tip to solve this?
Another thing I can't manage to do is using the "hogCPU" and "releaseCPU" statement instead of stop and start the "move" task again, the code just stops to work if I try to use these two statements (at the same position of where the "stopTask" and "startTask" are)... I don't know if it's not supported by ev3 or if I'm just making some mistake... Thank you guys for support.