users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Other problem


From: cegea
Subject: Other problem
Date: Tue, 18 Jan 2005 13:02:18 +0100 (CET)
User-agent: SquirrelMail/1.4.3a

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.





reply via email to

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