Re: App Launches in Finder, Hangs While Launching in Debugger
On Dec 14, 2009, at 12:06 AM, Joar Wingfors wrote: > That's almost certainly an indication of a memory management error in your > application. If you're not using Garbage Collection in your app, I'd suggest > that you troubleshoot this using zombies. Search for "NSZombieEnabled" to > find help on how you employ their assistance. Great, thanks. Garbage Collection is not currently being used. This code previously was built with the 10.4 SDK which did not support GC. Now it builds with the 10.5 SDK, so I would assume is GC capable. Is GC as easy to implement as toggling the GCC_ENABLE_OBJC_GC build setting to either supported or required? It was set to unsupported. I changed the setting to supported, and my code compiled and linked fine. However, the debugger reported FlashInApp.framework was not built with GC and stopped. Perhaps there is a version of Flash'In'App framework that supports GC, I don't know. > If you were to check the console (/Applications/Utilities/Console.app) when > you launch your app from the Finder, you'd probably find the same error > logged there. Some exceptions get masked when you're running outside of the > debugger, and might not lead to a crash of your application. That doesn't > mean that you could consider this less severe though, uncaught exceptions > should be treated as crashes regardless. You were right, those same messages appeared in Console.app. It didn't occur to me to check there. Like you said, uncaught exceptions should be treated as crashes regardless. Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Launches in Finder, Hangs While Launching in Debugger
On Dec 14, 2009, at 12:52 AM, Kyle Sluder wrote: > Turning on GC is not the solution to your problem. Fixing your memory > management bugs is the solution. On Dec 14, 2009, at 12:54 AM, Joar Wingfors wrote: > For a trivial app it might be. For anything else, it would not be. GC and RC > are fundamentally different memory management models, and converting an > existing code base is never easy. You should not attempt it before you > understand how GC and RC differs, before you've read up on how GC is > supported in ObjC & Cocoa, etc. Understood. I'll have a good read. Thanks. Could this memory management issue have existed even when this project was being built with Xcode 2.5 and the 10.4 SDK, or is it something that was introduced to build with Xcode 3.2.1?___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Launches in Finder, Hangs While Launching in Debugger
On Dec 14, 2009, at 4:28 AM, Julien Jalon wrote: > It's not necessarily a memory management problem. As this happens very early > in the application launch, when Launch Services uses your Info.plist to > register the application, your problem might also be that an entry supposed > to be a string is in fact an array. Yes, that's why I was thinking resource. As far as I can remember, I didn't touch the plist file going from Xcode 2.5 to 3.2.1. However, I noticed a new key, CFBundleDisplayName, in my 3.2.1 info.plist file. I'm not too familiar with the make up of a plist file. Did the format of the info.plist change between versions? Regardless, there seems to be an erroneous in there. Perhaps something got mangled along the way from 2.5 to 3.2.1? I need to bone up on info.plist. Thanks. CFBundleDisplayName CFBundleTypeExtensions tsk TSK CFBundleTypeIconFile tsk.icns CFBundleTypeMIMETypes application/tsk CFBundleTypeName TSK Document CFBundleTypeOSTypes tsk TSK CFBundleTypeRole Viewer LSTypeIsPackage NSPersistentStoreTypeKey JSON ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Launches in Finder, Hangs While Launching in Debugger
On Dec 14, 2009, at 12:16 PM, Matthew Lindfield Seager wrote: > That belongs to the preceding LSTypeIsPackage key. Yea, I was still sleeping when I responded to that last post. ;) Turned out that resource CFBundleDisplayName/CFBundleDocumentTypes should not have even been in the plist file for this app in the first. It some how inadvertently was appended. Lesson learned. errr.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com