Problems running a program in Photon

Hi, I made a program that it control a robot arm with a thread in real time, the program runs correctly without Photon, but if i execute the program in photon with the robot, it work well until i wanna exit from the program in this moment the system QNX 6.3 is hanged, the video is frozen.

Sombody can say me why?

P.D. I need photon, because i wanna make the program with PhAB.

Hmmm,

Synchronization…
Deadlock…
Which priorities…

Could be anything. Try to use the debugging tools or the profiler to see what is going on. Try to open a terminal and do a pidin and check the process states.

Try to get more info and reply it back to this forum.

Cheers,
Freddy

PS: Make 2 applications. Separate the RT part from the photon part and try to send QNX messages.