×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:AknTextUtils::WrapToArrayL() does not accept literals (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search
Forum Nokia KB (Talk | contribs)
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot addition of Template:ArticleMetaData)
Line 1: Line 1:
 +
{{ArticleMetaData
 +
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
 +
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
 +
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later -->
 +
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 +
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 +
|id= <!-- Article Id (Knowledge base articles only) -->
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by=<!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate=Technical writer 1
 +
|author=[[User:Technical writer 1]]
 +
}}
 +
 
[[Category:Symbian C++]]
 
[[Category:Symbian C++]]
 
[[Category:Known Issue]]
 
[[Category:Known Issue]]

Revision as of 06:59, 15 December 2011

Article Metadata
CompatibilityArticle
Created: User:Technical writer 1 (Technical writer 1)
Last edited: hamishwillee (15 Dec 2011)
Template:KBKI


ID KIS001069 Creation date August 7, 2008
Platform S60 3rd Edition, S60 3rd Edition, FP1 Devices Tested Nokia N95, Nokia E90 Communicator, Nokia N73
Category Symbian C++ Subcategory -

Description

AknTextUtils::WrapToArrayL() exits with KERNEXEC 3 panic when a literal (such as _L("") or _LIT("")) is passed as a parameter. It works fine if a descriptor (such as TBuf, HBuf, TLitC) other than a literal is passed.

How to reproduce

1. Declare and initialize a TRect object.
2. Declare and initialize a const CFont object and use the following lines of code.

   CArrayFix<TPtrC>* array = new (ELeave)CArrayFixFlat<TPtrC>( 1 );
   CleanupStack::PushL( array );
   AknTextUtils::WrapToArrayL( _L( "Foo" ), aRect.Width(), *aFont, *array );

This works fine if the following lines of code are used:

   _LIT(KBuf,"Foo");
   TBuf<10> buf = KBuf;
   CArrayFix<TPtrC>* array = new (ELeave)CArrayFixFlat<TPtrC>( 1 );
   CleanupStack::PushL( array );
   AknTextUtils::WrapToArrayL( buf, aRect.Width(), *aFont, *array );

Solution

No solution exists.

185 page views in the last 30 days.