By ajinkyashelar
on Wed, 06/20/2012 - 17:12
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..
Re: Dataset path EXC_BAD_ACESS
Re: Dataset path EXC_BAD_ACESS
Re: Dataset path EXC_BAD_ACESS
Re: Dataset path EXC_BAD_ACESS
Re: Dataset path EXC_BAD_ACESS
Re: Dataset path EXC_BAD_ACESS
Re: Dataset path EXC_BAD_ACESS
Re: Dataset path EXC_BAD_ACESS
Re: Dataset path EXC_BAD_ACESS