I am using OpenNI2 to grab to depth and IR frames with out any problem and when I try to grab the color frame in the same program it stops at following line;
ClrStream.readFrame(&ClrFrameRef);
But I wrote second program without depth frame and IR frame but only color frame it works.