Image is offset horizontally after about an hour

Hi Guys,

I have built a simple OF project where i look for change in an incomming image. I use a playstation eye with a wide angle lens. Im using the CL-eye driver on windows 7.

I get a problem in my runtime after a couple of hours, where my image gets offset in the horizontal direction.

The error looks like this:

Im initializing the camera using this snippet:


And grab the picture using this snippet:

if (vidGrabber.isFrameNew()){
unsigned char * pixels = vidGrabber.getPixels();
colorImg.setFromPixels(pixels, camWidth, camHeight);

Do you have any idea on what might be causing this issue? Could it be a hardware or driver issue?

Kind regards