"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Dataset path EXC_BAD_ACESS

Hi , I am trying to have dynamic dataset in my app. So I want to download the dataset from server in runtime. For that I have to put my dataset in Documents Dir. I am successfully downloading the dataset to Docs Folder but I am not able to load the data set in the AppDelegate.mm in applicationDidFinishLaunching. [CODE] NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES); NSString *documentsDir = [paths objectAtIndex:0]; NSString *pathfinal = [documentsDir stringByAppendingPathComponent:@"tracker.xml"]; [qUtils addTargetName:@"My Dataset" atPath:pathfinal]; [/CODE] It gives me a EXC_BAD_ACESS in (void)loadTracker of QCARutils.mm at [CODE]if (aDataSet.path != nil) [/CODE] Am I specifying the Path of .xml in Docs Dir properly.. ??? how should we specify the path in atPath: when we are not using the dataset from Bundle.?? I am using STORAGE_ABSOLUTE in LoadDataset [CODE] if (!theDataSet->load(filename, QCAR::DataSet::STORAGE_ABSOLUTE)) [/CODE] Please Help me out.. I am stuck on this for long time now.. am I missing something here..

Hi ajinkyashelar I'll see if I can help, so here are a few suggestions 1 Have you tried verifying the datasets (.dat and .xml) by binding them locally/statically?

[QUOTE=ajinkyashelar]Hi Nalins, no path is required since we are already using STORAGE_ABSOLUTE in LoadDataset and there we have specified the path of Docs Dir. [/QUOTE] Where exactly do you specify the path? I have tried some of the same approaches as you, but without succes

Basically you do not need to specify a path in iOS [qUtils addTargetName:@"Tarmac" atPath:@"Tarmac.xml"]; This assumes that you have Tarmac.xml and Tarmac.dat in your resources flyer within your project. It will know how to find it without you giving it a path. HTH N

Ok, I just tested this with files in the document directory so it should work: Firstly when you are adding the target, just use the vanilla filename e.g. [INDENT][FONT=Courier New][qUtils addTargetName:@"MyTest" atPath:@"MyTest.xml"]; [/FONT][/INDENT] Note that if you use the full path name above