Hello,
After debugging for an hour I found out where app is hanging. The code is in QCARutils.mm below
- (void)stopCamera
{
// Stop the tracker:
QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();
//NSLog(@"%d", targetType);
QCAR::Tracker* tracker = trackerManager.getTracker(targetType == TYPE_FRAMEMARKERS ?
QCAR::Tracker::MARKER_TRACKER :
QCAR::Tracker::IMAGE_TRACKER);
if(tracker != 0)
tracker->stop();QCAR::CameraDevice::getInstance().stop();
QCAR::CameraDevice::getInstance().deinit();
}
Application dont move forward and screen hangs when it reaches following line of above code
QCAR::Tracker* tracker = trackerManager.getTracker(targetType == TYPE_FRAMEMARKERS ?
QCAR::Tracker::MARKER_TRACKER :
QCAR::Tracker::IMAGE_TRACKER);
What could be the issue? I did major changes in EAGLView.mm. What could have caused the issue?
well this problem arises when you push new controller in front with presentmodalviewcontroller method. If video is playing in background then app freezes, I just had to stop all playing videos just after new controller is pushed so by the time new controller took control video stops so it is not hanging anymore.