From mdonder@cs.bilkent.edu.tr  Fri Jun  2 18:13:15 2000
Received: from gordion.cs.bilkent.edu.tr (gordion.cs.bilkent.edu.tr [139.179.21.213])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id SAA15360
	for <prolog@swi.psy.uva.nl>; Fri, 2 Jun 2000 18:13:09 +0200 (MET DST)
Received: from didim (didim [139.179.21.219])
	by gordion.cs.bilkent.edu.tr (8.9.3/8.9.3) with SMTP id TAA14751
	for <prolog@swi.psy.uva.nl>; Fri, 2 Jun 2000 19:09:12 +0300 (EET DST)
Date: Fri, 2 Jun 2000 19:13:36 +0300 (EET DST)
From: Mehmet Donderler <mdonder@cs.bilkent.edu.tr>
X-Sender: mdonder@didim
To: prolog@swi.psy.uva.nl
Subject: Out of Trail Stack Error! 
Message-ID: <Pine.SOL.3.92.1000602191241.8441B-100000@didim>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Dear all:

I have a PC with 1GB memory and I have set the Local and Trail stacks to
their maximum as below. I am calling Prolog from a C program and sending
the arguments -L0 and -T0 to PL_initialise(..). However, I still have a
message stating that I am out of trail stack. I suspect that I could not
set the Local and Trail stack to their maximum correctly. I would be very
grateful if you e-mail me how I could set the stacks to their maximum
from a C program.


/ My C program fragment /////////////////

............

char *plav[3];

...............

plav[0] = argv[0];
plav[1] = malloc(sizeof(10));
strcpy(plav[1],"-L0");
plav[2] = malloc(sizeof(10));
strcpy(plav[2],"-T0");
plav[3] = NULL;

............

if(!PL_initialise(3, plav)) PL_halt(1);

..............

////////////////////////////////////////


Thanks!

Mehmet Emin Donderler
mdonder@cs.bilkent.edu.tr



