users-prolog
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]