Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 07:59, 11 February 2008.

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

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 Discussions
Thread Thread Starter Forum Replies Last Post
Access point selection panics tote_b5 Python 6 2008-04-21 14:18
SVG icon - questions Bill_Murray Symbian User Interface 8 2007-06-23 11:27
There's no icon for my app before restarting N6600 kuisti General Symbian C++ 20 2005-04-16 10:15
application icon nicholasgaye Symbian User Interface 4 2005-04-15 12:46
Browser Contorl API - CBrCtlInterface::LoadUrlL crashes bfamler Symbian Networking & Messaging 0 2008-03-06 16:55
 
Powered by MediaWiki