EXC_BAD_ACCESS most often means you are trying to access memory which has already been released. Unfortunately the mistake in your code may not be anywhere near where the crash is actually occuring.
Try searching this forum and/or stackoverflow.com for EXC_BAD_ACCESS, you should find plenty of info on how to approach debugging this.
Quote:
Originally Posted by Balillas
Hi
I need some help.
I'm trying to implement this code in my app but CreatePDFFile crashes when code riches this line: provider = CGDataProviderCreateWithURL (pictureURL) EXC_BAD_ACCESS...
I don't know whats happening.
Where the code search for the png image than wants to include to the pdf flie?
The const char *picture was the name of the file to be included in the pdf?
I hope you can help me.
Thanks
|