Namespaces
Variants
Actions
(Difference between revisions)

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

Jump to: navigation, search
m (Hamishwillee - Tidy wiki text)
m (Hamishwillee - Adding missing translation link)
Line 53: Line 53:
  
 
No solution exists.
 
No solution exists.
 +
<!-- Translation --> [[zh-hans:AknTextUtils::WrapToArrayL()不接收字母参数]]

Revision as of 07:34, 16 December 2011

Article Metadata

Tested with
Devices(s): Nokia N95, Nokia E90 Communicator, Nokia N73

Compatibility
Platform(s): S60 3rd Edition, S60 3rd Edition FP1

Article
Created: User:Technical writer 1 (07 Aug 2008)
Last edited: hamishwillee (16 Dec 2011)

Template:KBKI


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.

302 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved