Archived:AknTextUtils::WrapToArrayL() does not accept literals (Known Issue)
hamishwillee
(Talk | contribs) m (Removed protection from "TSS001069 - AknTextUtils::WrapToArrayL() does not accept literals": Merge with wiki) |
hamishwillee
(Talk | contribs) m (Hamishwillee - Add Abstract. Tidy wiki text) |
||
| Line 1: | Line 1: | ||
[[Category:Symbian C++]][[Category:Known Issue]][[Category:S60 3rd Edition]][[Category:S60 3rd Edition, Feature Pack 1]] | [[Category:Symbian C++]][[Category:Known Issue]][[Category:S60 3rd Edition]][[Category:S60 3rd Edition, Feature Pack 1]] | ||
| + | {{Abstract|{{Icode|AknTextUtils::WrapToArrayL()}} exits with {{Icode|KERNEXEC 3}} panic when a literal (such as {{Icode|_L("")}} or {{Icode|_LIT("")}}) is passed as a parameter. It works fine if a descriptor other than a literal is passed. (e.g. {{Icode|TBuf}}, {{Icode|HBuf}}, {{Icode|TLitC}}). }} | ||
| + | |||
{{ArticleMetaData <!-- v1.2 --> | {{ArticleMetaData <!-- v1.2 --> | ||
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] --> | |sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] --> | ||
| Line 24: | Line 26: | ||
|id= KIS001069 | |id= KIS001069 | ||
}} | }} | ||
| − | |||
| − | |||
| − | |||
{{Archived|timestamp=20120223111305|user=roy.debjit| }} | {{Archived|timestamp=20120223111305|user=roy.debjit| }} | ||
| − | |||
| − | |||
| − | |||
== How to reproduce == | == How to reproduce == | ||
| − | # Declare and initialize a TRect object. | + | # Declare and initialize a {{Icode|TRect}} object. |
| − | # Declare and initialize a const CFont object and use the following lines of code. | + | # Declare and initialize a {{Icode|const CFont}} object and use the following lines of code. |
#: <code cpp> | #: <code cpp> | ||
CArrayFix<TPtrC>* array = new (ELeave)CArrayFixFlat<TPtrC>( 1 ); | CArrayFix<TPtrC>* array = new (ELeave)CArrayFixFlat<TPtrC>( 1 ); | ||
| Line 54: | Line 50: | ||
No solution exists. | No solution exists. | ||
| + | |||
<!-- Translation --> [[zh-hans:AknTextUtils::WrapToArrayL()不接收字母参数]] | <!-- Translation --> [[zh-hans:AknTextUtils::WrapToArrayL()不接收字母参数]] | ||
Revision as of 07:06, 24 February 2012
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 other than a literal is passed. (e.g. TBuf, HBuf, TLitC).
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
(24 Feb 2012)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
How to reproduce
- Declare and initialize a TRect object.
- 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.

