Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > setjmp/longjmp in Symbian OS

Reply
Thread Tools

setjmp/longjmp in Symbian OS

 
 
alexey_m
Guest
Posts: n/a
 
      09-29-2005
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.

 
Reply With Quote
 
 
 
 
mlimber
Guest
Posts: n/a
 
      09-29-2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Symbian or J2ME, which one is the trend? Andrew McDonagh Java 1 12-30-2004 07:34 PM
Developing applications for Palm/PPC/Symbian?! What enviroment? Pret Orian Java 1 05-25-2004 08:07 PM
Re: Java Telephony API + Symbian Series 60 = how to devellop? SMMT Java 3 04-01-2004 05:18 PM
Re: Java Telephony API + Symbian Series 60 = how to devellop? Joe Smith Java 0 04-01-2004 08:12 AM
J2ME / Symbian newsgroup _.-= Java 2 07-31-2003 01:44 AM



Advertisments