This page was last modified 06:29, 12 December 2007.
Constructing CEikMenuBar crashes on some FP1 models
From Forum Nokia Wiki
| ID | Unofficial - No ID assigned | Creation Date | Nov 19, 2007 |
| Platform | S60 3rd Edition FP1 | Devices | Nokia N81 (FW 10.0.058), N95-8GB, N95 (FW 20.0.015), E51 |
| Category | Symbian C++ | Sub-Category | User Interface |
Description
When trying to construct a CEikMenuBar object on a Nokia N81 directly using
CEikMenuBar* obj = new(ELeave) CEikMenuBar();
the application panics with a KERN-EXEC 3. This class is unlikely to affect many applications because doing this is not part of the standard S60 UI, but it may still be referenced in legacy code, and has not caused any problems in previous models (up to and including the "classic" N95 FW 12.x), but is now crashing on the N81, as well as the N95-8GB and E51 (unverified, but likely due to bug reports from users), as well as the new FW 20.0.015 for the N95.
This does not seem to affect the use of the MENU_BAR resource in an application, which continues to work correctly.
Solution
Do not create this class directly from your code any more - most likely there is a better way to achieve the same effect in S60, or the corresponding piece of code may be a left-over from an earlier platform (e.g. Series 80).
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Application crashes in emulator, works in the phone? | sethuraman | General Symbian C++ | 2 | 2006-03-17 06:40 |
| OfferKeyEventL problem | rajesh1410 | General Symbian C++ | 1 | 2007-01-09 09:17 |
| prbm with nokia ngage | sunnie_y2s00 | Mobile Java General | 7 | 2007-02-10 10:11 |
| Differences [FP1 or MR SDK] | malloc | Symbian Tools & SDKs | 5 | 2007-04-24 13:16 |
| Audio recording | javierclaveria | Mobile Java Media (Graphics & Sounds) | 4 | 2007-06-21 12:40 |

