Hi all,

Following is the statement in my code
    NSImage *img = [[[NSImage alloc] initWithContentsOfFile:[[NSBundle
bundleForClass:[self class]] pathForImageResource:@"testicon"]]
autorelease];

Here testicon is Apple Icon Image file i.e. its extension is .icns
This application was running fine from 10 months but yesterday it was
crashed. From crash reported, it seems that it was crashed on above
statemement. Following is part of crash report.

Thread 2 Crashed:
0   com.apple.CoreFoundation     0x90830a41 __CFFromUTF8 + 565
1   com.apple.CoreFoundation     0x90830170 __CFStringDecodeByteStream3 +
1954
2   com.apple.CoreFoundation     0x9080bfaf __CFStringCreateImmutableFunnel3
+ 672
3   com.apple.CoreFoundation     0x90818c4f CFStringCreateWithBytes + 94
4   com.apple.CoreFoundation     0x9082ec62 _CFPropertyListCreateFromXMLData
+ 824
5   com.apple.CoreFoundation     0x9082e927 CFPropertyListCreateFromXMLData
+ 54
6   com.apple.CoreFoundation     0x908201d1
_CFBundleCopyInfoDictionaryInDirectoryWithVersion + 1402
7   com.apple.CoreFoundation     0x9081fc48 CFBundleGetInfoDictionary + 55
8   com.apple.CoreFoundation     0x90817362 _CFBundleCreate + 751
9   com.apple.LaunchServices     0x9189b185
LSRegisterDirectoryNode(LSContext*, FSNode*, LSRegistrationInfo*,
AliasRecord const*, unsigned long*) + 75
10  com.apple.LaunchServices     0x91898658 _LSFindOrRegisterBundleNode +
1064
11  com.apple.LaunchServices     0x91893fc9 LSDatabaseClean(LSDatabase*) +
211
12  com.apple.LaunchServices     0x91892460 _LSContextInit + 522
13  com.apple.LaunchServices     0x9189ee3b
UTTypeCreatePreferredIdentifierForTag + 51
14  com.apple.AppKit             0x932a128e +[NSBitmapImageRep
_imagesWithData:hfsFileType:extension:zone:] + 4444
15  com.apple.AppKit             0x932bf00b +[NSBitmapImageRep
_imageRepsWithData:hfsFileType:extension:] + 92
16  com.apple.AppKit             0x932bea7e +[NSImageRep
imageRepsWithContentsOfFile:] + 646
17  com.apple.AppKit             0x932be776 -[NSImage
initWithContentsOfFile:] + 45

Can anybody what went wrong?

Thanks,
Palav

-- 

There are many things in your life that will catch your eye but only a few
will catch your heart....pursue those'.
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to