Other problem
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
The previous problem is fixed. I changed the static libraries by dinamyc
libraries that I was using.
I have an application with one server and one client, and when I call the
server by second time, I obtain the next message:
Fatal Error: Memory allocation fault
The error is found in the next code included in c++ function in the server.
Start_Prolog(0, NULL);
func = Find_Atom("call_Suma_sum");
Pl_Query_Begin(TRUE);
arg[2] = Mk_Variable();
arg[0] = Mk_Positive(op1);
arg[1] = Mk_Positive(op2);
res = Pl_Query_Call(func, 3, arg);
sol = Rd_Positive(arg[2]);
Pl_Query_End(PL_RECOVER);
Stop_Prolog();
In short, in the second call to the sentence Star_Prolog.
thanks, in advance.