You Are Here:

Community: Wiki

This page was last modified on 20 October 2008, at 17:06.

KIJ000820 - Icon creation panics if out of bound

From Forum Nokia Wiki

This known issue was originally created by Otsov and has been verified by Forum Nokia.



ID KIJ000820 Creation date February 11, 2008
Platform S60 3rd Edition Devices Emulator
Category Symbian C++ Subcategory Graphics, SVG


Keywords (APIs, classes, methods, functions):

Description

When trying to create an icon with either of the following functions

 AknIconUtils::CreateIconL()
 AknsUtils::CreateIconL()

and a .mif or .mbm file which is indexed with an index greater than the range of TInt16 (that is, above 32767), AknIcon 5 panic is raised for debug builds (that is, the emulator).

Solution

The panic is raised for debug builds (that is, the emulator) only. CreateIconL() functions have __ASSERT_DEBUG statements for image and mask index values - a panic is always raised if index > KMaxTInt16.

In release (device) builds, these functions leave with error code KErrEof (-25).

Because of the way images are indexed in .mif files, the maximum safe number of icons in a single mif file is KMaxTInt16/4 (8192).

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia