PC SDK - Setting Program Pointer

Because i can only use "ResetProgramPointer()"method that can only reset the pp to the “main”,i cant use the "SetProgramPointer()"method. when i use "SetProgramPointer",theres always problem i have ask you before.So can you tell me how can i solve it?

How would the “ResetProgramPointer” function know which main is the true main? This is not a PC SDK issue, its a requirement in RAPID. You can only have one PROC named “main”.

Hi,

I have using ABB.Robotics.Controllers.RapidDomain and i have done the References, there are no warning, i don`t know whether they are the correct version.

Hi,

i tried to apply the example obove to start Rapid code. All is working fine but
tasks(0).Start()
takes no effect.

Setting the program pointer works (Visual prof) but Rapid programm is not running. Do i have to change controller settings in RobotStudio?
I am using a virtual controller, is it working at all?