Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Using TRAP IGNORE in a backward-compatible manner

From Wiki
Jump to: navigation, search

Archived.pngArchived: 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
Keywords: TRAP_IGNORE, TTrap
Created: tepaa (01 Apr 2008)
Last edited: lpvalente (04 Aug 2012)


S60 3rd Edition supports the TRAP_IGNORE template that catches leaves and does nothing on error. You can add TRAP_IGNORE support for older editions of the S60 platform when adding this define into a visible header:

#if !defined(EKA2)
#define TRAP_IGNORE(_s) {TInt _ignore;TTrap __t;if (__t.Trap(_ignore)==0)

Using this is similar to using it in the S60 3rd Edition platform environment:

TRAP_IGNORE( SomeLeavingFunctionL());


TRAP_IGNORE is supported.

This page was last modified on 4 August 2012, at 18:28.
22 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.