[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Raising Prolog exceptions from C code (2nd attempt)
From: |
Roberto Bagnara |
Subject: |
Re: Raising Prolog exceptions from C code (2nd attempt) |
Date: |
Fri, 07 Jun 2002 19:25:24 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020516 |
Joseph Benden wrote:
Hello,
The Prolog exceptions that I am successfully raising from both C and C++
code is based off of the Emit_Syntax_Error call.
Example:
Emit_Syntax_Error("SQL Error", 1, 1, "Some text that failed or another C
call returning a textual error message");
Hi Joseph,
thanks for your message. Just to make another test (I have done a million
anyway) I have tried replacing
Pl_Exec_Continuation(a_throw, 1, &t);
with
Emit_Syntax_Error(...)
in my application (http://www.cs.unipr.it/ppl/) and I observe exactly
the same segmentation violations and illegal instructions.
May it be because Pl_Exec_Continuation is implemented by means
of setjmp/longjmp and I am doing something that is incompatible
with them? What can it be?
Thanks again
Roberto
--
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:address@hidden
- Raising Prolog exceptions from C code (2nd attempt), Roberto Bagnara, 2002/06/07
- Re: Raising Prolog exceptions from C code (2nd attempt), Joseph Benden, 2002/06/07
- Re: Raising Prolog exceptions from C code (2nd attempt),
Roberto Bagnara <=
- Re: Raising Prolog exceptions from C code (2nd attempt), Daniele Peri, 2002/06/10
- Re: [PPL-devel] Re: Raising Prolog exceptions from C code (2nd attempt), Roberto Bagnara, 2002/06/10
- Re: [PPL-devel] Re: Raising Prolog exceptions from C code (2nd attempt), Manuel Carro, 2002/06/10
- Re: [PPL-devel] Re: Raising Prolog exceptions from C code (2nd attempt), Roberto Bagnara, 2002/06/10
- Re: [PPL-devel] Re: Raising Prolog exceptions from C code (2nd attempt), Manuel Carro, 2002/06/11
- Re: [PPL-devel] Re: Raising Prolog exceptions from C code (2nd attempt), Fergus Henderson, 2002/06/11
- Re: [PPL-devel] Re: Raising Prolog exceptions from C code (2nd attempt), Fergus Henderson, 2002/06/11
- Re: [PPL-devel] Re: Raising Prolog exceptions from C code (2nd attempt), Daniel Diaz, 2002/06/11
- Re: [PPL-devel] Re: Raising Prolog exceptions from C code (2nd attempt), Fergus Henderson, 2002/06/12
- Re: [PPL-devel] Re: Raising Prolog exceptions from C code (2nd attempt), Daniel Diaz, 2002/06/12