Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Porting issue

1 replies · 1,451 views · Started 29 March 2005

Hi All,
We have an application originally targeted towards high end PC's to be ported on Symbian OS(Series 60 devices).
The biggest bottlenecks i am finding at start is
1) The Leave mechanism.The confusing thing is that in SDK it is adviced to use leave mechanish in preference to TRAP/TRAPD macros.But in all examples(console applications) everywhere TRAP/TRAPD macros are used.I am not able to differentiate between leave & trap mechanism.Are they same?When we name a function with trailing L , is it mandatory to call this function from within TRAP/TRAPD.If not, then how do we manage the leaves.
2) Our application uses STL,particularly lists,vectors,maps,strings.I am desperately looking for their substitutes in symbian which meets my requirements as well as introduces no new overheads

Thanks in advance
Chandra Prakash

Chandra Prakash wrote:Hi All,
We have an application originally targeted towards high end PC's to be ported on Symbian OS(Series 60 devices).
The biggest bottlenecks i am finding at start is
1) The Leave mechanism.The confusing thing is that in SDK it is adviced to use leave mechanish in preference to TRAP/TRAPD macros.But in all examples(console applications) everywhere TRAP/TRAPD macros are used.I am not able to differentiate between leave & trap mechanism.Are they same?When we name a function with trailing L , is it mandatory to call this function from within TRAP/TRAPD.If not, then how do we manage the leaves.
2) Our application uses STL,particularly lists,vectors,maps,strings.I am desperately looking for their substitutes in symbian which meets my requirements as well as introduces no new overheads

Thanks in advance
Chandra Prakash


Leave is throw and TRAP is catch.
Its not necessary to call a function ending in L to be called under a TRAP.
Doing so will help u in traping the leave and knowing what is the error and do some
rollback action if reqd.
Also the console examples are not good to follow.look at the series 60 examples and
most of it will be clear.
As for STL u have STLport(never used it myself).
Hope this helps.
Bye.
--eminemence.