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

Nested TRAPs

0 replies · 914 views · Started 16 November 2004

Nested TRAPs

I have some strange error:

If I do the next:

1| TRAPD(errCode, FooL());
2| ..//handle errCode
3|
4| void FooL()
5| {
6| Foo2L();
7| }

it works fine, but if I change FooL() like this:

void FooL()
{
TRAPD(errCode, Foo2L());
}

Program crashes after line 1.
What can be the problem?
Thanks in advance, Aya