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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-05-2011, 02:48 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 2
mhergon is on a distinguished road
Question iPad - renderInContext / Memory problem

Hi,

I have a problem. When I use the "renderInContext" in the iPad, the used memory is never released and accumulates until the application closes with "Memory Warning" Level=1 and Level=2

My code:

Code:
CGRect mediaBox = CGRectMake(0, 0, 16.54 * 72.0, 24.02 * 72.0);
            CGContextRef ctx = CGPDFContextCreateWithURL((CFURLRef)[NSURL fileURLWithPath:posterPath isDirectory:NO], &mediaBox, NULL);
            CGPDFContextBeginPage(ctx, NULL);
            CGContextScaleCTM(ctx, 0.516, -0.516);
            CGContextTranslateCTM(ctx, 0, -mediaBox.size.height - 1500);
            [[self returnBigView].layer renderInContext:ctx];
            CGPDFContextEndPage(ctx);
            CGPDFContextClose(ctx);
            CGContextRelease(ctx);
I have tried several ways, but no free memory. Any ideas?

** Sorry for my bad English
mhergon is offline   Reply With Quote
Old 04-06-2011, 03:36 PM   #2 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 2
mhergon is on a distinguished road
Default

Did anyone know how to fix the problem?
mhergon is offline   Reply With Quote
Old 05-25-2011, 03:05 AM   #3 (permalink)
x51
Registered Member
 
Join Date: May 2011
Posts: 12
x51 is on a distinguished road
Default

I have this same problem, did you fix it?
x51 is offline   Reply With Quote
Reply

Bookmarks

Tags
memory, memory manager, renderincontext

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 366
13 members and 353 guests
condor304, dansparrow, dre, ilmman, LezB44, michelle, Nobbsy, Objective Zero, samdanielblr, Sami Gh, shagor012, thephotographer, tinamm64
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:40 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0