This question is a followup from this question.
I'm running a large number of tests in Sicstus prolog:
runtest:-
t1,
t2,
t3,
.
.
t100.
Each test is standalone and will print its result to the screen. There is no releation between the tests, so no data need to be stored/saved between each test.
My problem is that Sicstus accumulates memory and finally hits an exception: 'Resource error: insufficient memory'
I have tried to organize my test like this:
runtest:-
once( t1 ),
once( t2 ),
.
.
once( t100 ).
But I still get into the problem.
Is there any other way to tell Prolog to free all allocated memory between each call to a test?
undo
might be another reason whyonce/1
cannot reclaim space. – Menderes