[comp.sys.hp] Problems with starbase/X.

tobbe@joakim.liu.se (Torbjorn Kronander) (10/06/89)

Linkoping University
Sweden
Keywords: 

Dear netland,
we are using X windows and try to use starbase on a window but run into
severe problems:
Why do the starbase call gopen() in, seemingly, randomness sometimes fail,
sometimes succeed when used with X-windows?
Our call is
gopen(device_string, OUTDEV, "hp98550") 
and the program is linked with -ldd98550.
The error message is
"starbase error 3: device kind is not supported for the specified
device"

But the call works beautiful sometimes ??


--
-----------------------------------------------------------------------
Torbjorn Kronander			tobbe@isy.liu.se
Dept. of EE	Linkoping University    Sweden
ph +46 13 28 22 07

chan@hpfcmgw.HP.COM (Chan Benson) (10/11/89)

> Dear netland,
> we are using X windows and try to use starbase on a window but run into
> severe problems:
> Why do the starbase call gopen() in, seemingly, randomness sometimes fail,
> sometimes succeed when used with X-windows?
> Our call is
> gopen(device_string, OUTDEV, "hp98550") 
> and the program is linked with -ldd98550.
> The error message is
> "starbase error 3: device kind is not supported for the specified
> device"
> 
> But the call works beautiful sometimes ??

I don't know know for sure, but gopen takes four arguments, not just three 
(the fourth one being mode). I suspect that on the times that it fails 
there is junk on the stack that is an invalid mode for your device.


			-- Chan Benson
			HP Fort Collins

stroyan@hpfcdq.HP.COM (Mike Stroyan) (10/11/89)

> Why do the starbase call gopen() in, seemingly, randomness sometimes fail,
> sometimes succeed when used with X-windows?
> Our call is
> gopen(device_string, OUTDEV, "hp98550") 
> and the program is linked with -ldd98550.

The gopen function has four parameters, but you only passed it three.
The call will fail when the random stack value which is read as the
'mode' parameter has both the INT_XFORM and FLOAT_XFORM flags set.

Mike Stroyan, stroyan@hpfcla.hp.com