Archived:Capability issues in Notepad Library API (Known Issue)
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}}.
Article Metadata
Tested with
Devices(s): Nokia N95
Compatibility
Platform(s): S60 3rd Edition (initial release) and FP1
Article
Keywords: Notepad Library API, CNotepadApi
ExecReadOnlyTextViewerL, ExecTextEditorL
ExecReadOnlyTextViewerL, ExecTextEditorL
Created: User:Technical writer 1
(22 Feb 2008)
Last edited: hamishwillee
(15 Jun 2012)
Description
CNotepadAPI::ExecReadOnlyTextViewerL requires the following capabilities: ReadDeviceData, WriteDeviceData, ReadUserData, and WriteUserData. This is not documented.
CNotepadAPI::ExecReadOnlyTextViewerL and ExecTextEditorL are used to show a text string in the Notepad application. The CNotepadAPI::ExecTextEditorL function requires the same four capabilities to work fully. The function can be executed with the None capability but the application will crash if the user selects the Find operation from Notepad's menu.
How to reproduce
CNotepadApi *note = CNotepadApi::NewLC();
_LIT(text,"Some very long text, Some very long text ");
note->ExecReadOnlyTextViewerL(text,_L("TITLE"),_L("DELETE?"));
CleanupStack::PopAndDestroy(note);
Solution
Add WriteDeviceData, ReadUserData, and WriteUserData capabilities. The issue is expected to be fixed in S60 3rd Edition, FP2 devices and SDK.


(no comments yet)