469,592 Members | 2,026 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

setjmp/longjmp in Symbian OS

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.

Sep 29 '05 #1
1 1394
alexey_m wrote:
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

Sep 29 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Thomas Baruchel | last post: by
12 posts views Thread by Michael B Allen | last post: by
4 posts views Thread by Jrferguson | last post: by
5 posts views Thread by candy | last post: by
20 posts views Thread by JS | last post: by
8 posts views Thread by Zheng Da | last post: by
4 posts views Thread by Sreekanth | last post: by
15 posts views Thread by rover8898 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.