Newsgroups: comp.sys.apollo
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spam.engin.umich.edu!oliveria
From: oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA)
Subject: how to remotely (crp, rlogin) run GPR within an X window
Message-ID: <1991May10.022849.11127@engin.umich.edu>
Keywords: gpr, x11, graphics
Sender: news@engin.umich.edu (CAEN Netnews)
Organization: The University of Michigan, Ann Arbor
Date: Fri, 10 May 1991 02:28:49 GMT

I'm running the example in /usr/X11/examples/x_and_gpr .
It runs fine if you are logged in direcly on the display.
I can't get it to run remotely. The error is:

dude% x_share_gpr
Not a local connection.
XIO:  fatal IO error 9 (Bad file number) on X server "spam:0.0"
      after 26 requests (25 known processed) with 0 events remaining.

Examining the source code, the error came from:
    if (!XapolloConnectionIsLocal (display))
	terminate_x ("Not a local connection.");

My question: Is it possible to run a gpr program within an X window, remotely ?
             If yes, a short example would be appreciated.

I tried to use gpr_$initialize(gpr_$x_window_id,....) but got nowhere.
Thanks.

    Roque Oliveira
    oliveria@caen.engin.umich.edu
