Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-16-2010, 03:17 AM   #3 (permalink)
Jume
Registered Member
 
Jume's Avatar
 
Join Date: Jul 2008
Location: Slovenia, EU
Posts: 264
Jume is on a distinguished road
Send a message via Skype™ to Jume
Default

Quote:
Originally Posted by harrytheshark View Post
It's basically telling you that "imgRef" is nil so it can't create an image.
I knew that but didn't know what was the problem. I found out with the help from people from the Quartz mailing list...

CGImageSourceCreateImageAtIndex should not be used to create CGImageRef from PDF source ... Instead CGImageSourceCreateThumbnailAtIndex should be used. It worked after I used this method, but there are other problems with this.

There is a bug in Apple frameworks by using CGImageSourceCreateThumbnailAtIndex which end up in huge memory leaks. It only happens when source is PDF. I tried PSD source and no leaks, but having leaks with PDF source. I filled a bug report for this issue.
Jume is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,478
Threads: 94,040
Posts: 402,627
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Garnitomar
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:37 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.