This page was last modified 02:02, 14 March 2008.
KIS000830 - Capability issues in Notepad Library API
From Forum Nokia Wiki
| ID | KIS000830 | Creation date | February 22, 2008 |
| Platform | S60 3rd Edition S60 3rd Edition, FP1 | Tested on devices | Nokia N95 |
| Category | Symbian C++ | Subcategory | Application Framework |
| APIs | Notepad Library API | Classes | CNotepadApi |
| Methods | ExecReadOnlyTextViewerL ExecTextEditorL |
Description
Functions CNotepadAPI::ExecReadOnlyTextViewerL and ExecTextEditorL can be used to show a text string in the Notepad application.
CNotepadAPI::ExecReadOnlyTextViewerL requires the following capabilities: ReadDeviceData, WriteDeviceData, ReadUserData, and WriteUserData. This is not documented.
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.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get IMEI on Symbian 3rd? | oslario | General Symbian C++ | 25 | 2006-11-29 07:51 |
| Which Library I Should Link Against? | antonypr | Symbian Tools & SDKs | 1 | 2003-08-05 14:24 |
| aml_1989's signing problem | aml_1989 | Symbian Signing, Certification and Security | 4 | 2008-02-05 13:35 |
| 我下学期便要做毕业论文了 | bigpiece | Symbian | 6 | 2005-05-08 20:41 |
| Goodbye World | jenslynux | General Symbian C++ | 13 | 2007-03-21 14:02 |

