iphone - Crash on CGPDFDocumentCreateWithURL -


i exc_bad_access on code:

    nsurl *pdfurl = [nsurl urlwithstring:path];   pdf = cgpdfdocumentcreatewithurl((cfurlref)pdfurl);   cfrelease(pdfurl); 

'path' nsstring path the file loading documents directory. have chanced ensure path correct. running on simulator don't see why should make difference in situation.

any ideas why crash occurring?

thanks

don't release pdfurl. urlwithstring: returns autoreleased object.


Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -