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:bagnara@cs.unipr.it