Leak on iPhone Application start up.
Leak on iPhone Application start up.
- Subject: Leak on iPhone Application start up.
- From: Gustavo Pizano <email@hidden>
- Date: Wed, 24 Feb 2010 21:44:57 +0100
Hello all.
This is what I have:
I have in the MainWindow.xib a UINavigationController, and the Root Controller its a custom UIViewController which in IB Im setting to load it's view form another .xib, So on IB I see UINavigationViewController's rootController's view that says "View loaded from FirstLevel.xib"
Ok all fine the view loads the animations starts. OK.
when I check with leaks I have the following:
0 libSystem.B.dylib malloc
1 dyld malloc
2 dyld strdup
3 dyld dyld::mkstringf(char const*, ...)
4 dyld dyld::loadPhase5(char const*, dyld::LoadContext const&, std::vector<char const*, std::allocator<char const*> >*)
5 dyld dyld::loadPhase4(char const*, dyld::LoadContext const&, std::vector<char const*, std::allocator<char const*> >*)
6 dyld dyld::loadPhase3(char const*, dyld::LoadContext const&, std::vector<char const*, std::allocator<char const*> >*)
7 dyld dyld::loadPhase1(char const*, dyld::LoadContext const&, std::vector<char const*, std::allocator<char const*> >*)
8 dyld dyld::loadPhase0(char const*, dyld::LoadContext const&, std::vector<char const*, std::allocator<char const*> >*)
9 dyld dyld::load(char const*, dyld::LoadContext const&)
10 dyld dyld::libraryLocator(char const*, bool, char const*, ImageLoader::RPathChain const*)
11 dyld ImageLoader::recursiveLoadLibraries(ImageLoader::LinkContext const&, bool, ImageLoader::RPathChain const&)
12 dyld ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, ImageLoader::RPathChain const&)
13 dyld dyld::link(ImageLoader*, bool, ImageLoader::RPathChain const&)
14 dyld dlopen
15 libSystem.B.dylib dlopen
16 CoreGraphics open_handle_to_dylib_path
17 CoreGraphics load_function
18 CoreGraphics CGLibraryLoadFunction
19 CoreGraphics loadBitmapContextDelegateCreator
20 libSystem.B.dylib pthread_once
21 CoreGraphics __CGBitmapContextDelegateCreate
22 CoreGraphics createBitmapContext
23 CoreGraphics CGBitmapContextCreate
24 QuartzCore CAGetCachedCGBitmapContext
25 QuartzCore CABackingStoreUpdate
26 QuartzCore -[CALayer _display]
27 QuartzCore CALayerDisplayIfNeeded
28 QuartzCore CA::Context::commit_transaction(CA::Transaction*)
29 QuartzCore CA::Transaction::commit()
30 UIKit -[UIApplication _reportAppLaunchFinished]
31 UIKit -[UIApplication handleEvent:withNewEvent:]
32 UIKit -[UIApplication sendEvent:]
33 UIKit _UIApplicationHandleEvent
34 GraphicsServices PurpleEventCallback
35 CoreFoundation CFRunLoopRunSpecific
36 CoreFoundation CFRunLoopRunInMode
37 UIKit -[UIApplication _run]
38 UIKit UIApplicationMain
39 iGo2Palace main /Users/GustavPicora/Desktop/iGo2Palace/main.m:14
40 MyApp start
I started removing the animations thinking that this might be the cause because I saw a CALayer somewhere there, I ran again, and it loads the view without animations but still the Leak was there.
Then I decided to load a simple UIViewController as the UINavigationController's rootController to display the NAvigationBar with a white view, no more, And guess what...it keeps leaking..
Any ideas why this behavior?.. In my Application delegate applicationDidfinishLaunching Im doing [window addSubview:[navController view]]; thats it, nothing else, navController is the IBOutlet of the UINavigationController .
Thanks for the Help
Gustavo
PS;
Oh yes Im leaking 128 Bytes.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden