beagleboard opencv unexpected output

my opencv program runs fine on my PC(ubuntu linux), but the same program gives weird result on beagleboard-xm (although no error occurs).It does not invoIve any camera.I need to know why is that happening. Please help!