Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Trusted Contributor
JohnWS
Posts: 120
Registered: ‎02-08-2013
My Device: 9900

viewfinder callback stops getting called

[ Edited ]

Hi,

 

I am sending images to a socket from frames which are passed to me in a viewfinder callback.

 

The callback just stops receiving events after about 5 seconds - no more is this callback called.

 

What could cause this problem?

 

I am doing quite a lot of work in this callback, I have tried passing the camera_buffer_t to a slot but when i try that the camera_buffer_t doesn't contain any data so for the moment I am still just trying to send the data in the callback itself.

 

I have tried checking the time since last sent data so it's not sending more than 1 image every 2 seconds but this doesn't help.

 

Any ideas anybody?

Trusted Contributor
JohnWS
Posts: 120
Registered: ‎02-08-2013
My Device: 9900

Re: viewfinder callback stops getting called

this was my fault - I got some sleep and found my problem - I was stopping viewfinder myself!