[comp.sys.sgi] bell problem

anand@crysiris.rice.edu (Anand Kolatkar) (02/13/91)

	I am posting on behalf of another user.  He is having a problem
	using the setbell command in Pascal (the system is a 4D/20-OS
	3.3.1).  His code:

	var bellmode: byte;

	bellmode:=2;
	setbell(bellmode);

	compiles but a run-time error is reported:

	ERROR: CPS has not been initialized or server connection failed.

	Has anyone had this problem?  I suspect it is a simple problem.
	Any help would be appreciated.
	Thanks.

--
//     Anand Kolatkar	 	E-mail: anand@crysiris.rice.edu    //
//     Rice University						   //
//     Dept. of Biochemistry and Cell Biology			   //

msc@ramoth.esd.sgi.com (Mark Callow) (02/14/91)

In article <1991Feb13.153439.10748@rice.edu>, anand@crysiris.rice.edu (Anand Kolatkar) writes:
|> 
|> 	I am posting on behalf of another user.  He is having a problem
|> 	using the setbell command in Pascal (the system is a 4D/20-OS
|> 	3.3.1).  His code:
|> 
|> 	var bellmode: byte;
|> 
|> 	bellmode:=2;
|> 	setbell(bellmode);
|> 
|> 	compiles but a run-time error is reported:
|> 
|> 	ERROR: CPS has not been initialized or server connection failed.
|> 

setbell is a GL call.  Before calling any function in the GL (except those
that set window manager hints) you must call winopen() or ginit().
-- 
From the TARDIS of Mark Callow
msc@ramoth.sgi.com, ...{ames,decwrl}!sgi!msc
"Spirits of genius are always opposed by mediocre minds" - Albert Einstein