Workaround for hostname bug

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Thu 10 May 2001 08:26:30 PM GMT
Message-ID: <3AFAF976.DDAD923D@icparc.ic.ac.uk>
The problem was indeed that get_flag(hostname,H) left
uninitialized junk on the stack which caused the gc
to fall over.

Until you get an Eclipse that has this problem fixed,
you can use this hack:

hostname(H) :-
        findall(X, get_flag(hostname,X), [H]).

or, to be absolutely sure:

hostname(H) :-
	get_flag(gc, GC),
	set_flag(gc, off),
        findall(X, get_flag(hostname,X), [H]),
	set_flag(gc, GC).

-- 
 Joachim Schimpf              /             phone: +44 20 7594 8187
 IC-Parc, Imperial College   /            mailto:J.Schimpf@ic.ac.uk
 London SW7 2AZ, UK         /    http://www.icparc.ic.ac.uk/eclipse
Received on Thu May 10 21:26:30 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:06 PM GMT GMT