C->Prolog Interface: Pl_Query_Call, argument dimension problem?

View: New views
1 Messages — Rating Filter:   Alert me  

C->Prolog Interface: Pl_Query_Call, argument dimension problem?

by p.k.dick_fan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Hello to everyone!

I'm a little newbie to programming in Prolog and I need some help with C-> Prolog interface. I'm programming a
middleware for a math application, under a Linux distro 32-bit, using gprolog-1.3.1 and gcc 3.4.5.

My problem comes when I try to create (in C) with Pl_Mk_Proper_List a list with a lot of elements and to pass it as
an argument to a rule using a Pl_Query_Call.

Simply when the list is too big (it depends on grid dimension from which I create the variables list) my app crashes
and I got a 'Fatal Error: Segmentation Violation'. I'm guessing it is due to list's dimension because in smaller
chunks everything goes fine... but it would be really nice if I can use one list (of lists) instead of a lot micro-
lists (of lists).

What can I do?

Any helps would be really appreciated.

Antonio Crislazzo

p.s. sorry for the previous mail without any Subject!





---- Nuova grafica e nuove funzionalità! Crea subito Gratis la tua nuova Casella di Posta  Katamail


_______________________________________________
Users-prolog mailing list
Users-prolog@...
http://lists.gnu.org/mailman/listinfo/users-prolog