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 07-20-2010, 02:57 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 18
Johni85 is on a distinguished road
Default Old App iOS4 memory error

I compiled one of my old apps in the new SDK.
When I suspend my App and get it back (multitasking) the following code to display my settings view produces a memory Error:

Code:
FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibName:@"FlipsideView" bundle:nil];
controller.delegate = self;
	
controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:controller animated:YES];
	
[controller release];
Error:
EXC_BAD_ACCESS

Stack trace:
Code:
#0	0x024f4a97 in objc_msgSend
#1	0x05d0c2b0 in ??
#2	0x002f5f20 in -[UIView(Internal) _didMoveFromWindow:toWindow:]
#3	0x002f5cfc in -[UIView(Internal) _didMoveFromWindow:toWindow:]
#4	0x002f4b10 in -[UIView(Hierarchy) _postMovedFromSuperview:]
#5	0x002f4907 in -[UIView(Hierarchy) removeFromSuperview]
#6	0x003467e4 in -[UITransitionView _startTransition:withDuration:]
#7	0x003462e2 in -[UITransitionView transition:fromView:toView:]
#8	0x005528de in -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:]
#9	0x00369769 in -[UIViewController presentModalViewController:withTransition:]
#10	0x00004119 in -[MainViewController showInfo] at MainViewController.m:270
How can i fix this error?
__________________
Johni85 is offline   Reply With Quote
Old 08-09-2010, 12:11 AM   #2 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 1
tojamgames is on a distinguished road
Default

Hi Johni85 - Did you ever get a solution to this problem?
I'm having the same trouble now - no problem in the old app, but when I minimize the app and re-activate it in iOS4, I get an EXC_BAD_ACCESS when it hits removeFromSuperview

thanks
tojamgames is offline   Reply With Quote
Old 08-09-2010, 05:46 AM   #3 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 18
Johni85 is on a distinguished road
Default

Yes, i solved it. I assigned a new image to a part of my gui, the i released the Image. So after the application resumed, it reloads the gui and failed because the image isn't in the memory anymore.
__________________
Johni85 is offline   Reply With Quote
Reply

Bookmarks

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: 327
15 members and 312 guests
akphyo, alexP, appservice, bignoggins, EXOPTENDAELAX, flamingliquid, guusleijsten, Hamad, mariano_donati, Objective Zero, ohmniac, Paul Slocum, Rudy, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,653
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, ohmniac
Powered by vBadvanced CMPS v3.1.0

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