setjmp/longjmp in Symbian OS

A

alexey_m

Hi!
I try to use setjmp/longjmp instructions, but application fails with
KERN-EXEC 3. Code is very simple:
int Main()
{
jmp_buf jump_buffer;
if ( setjmp( jump_buffer ) == 0 )
{
longjmp( jump_buffer, 1 );
}
return 0;
}

Anybody used setjmp/longjmp (in Symbian)? Share experience, please.
Thanks.
 
M

mlimber

alexey_m said:
Hi!
I try to use setjmp/longjmp instructions, but application fails with
KERN-EXEC 3. Code is very simple:
int Main()
{
jmp_buf jump_buffer;
if ( setjmp( jump_buffer ) == 0 )
{
longjmp( jump_buffer, 1 );
}
return 0;
}

Anybody used setjmp/longjmp (in Symbian)? Share experience, please.
Thanks.

The functions setjmp and longjmp are for C-style stack unwinding and
are discouraged in C++ because they are incompatible with exception
handling (TC++PL, 16.1.2). I'd suggest you post this either in
comp.lang.c or in a newsgroup related to Symbian.

Cheers! --M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top