T.R | Title | User | Personal Name | Date | Lines |
---|
2102.1 | Don't XOpenDisplay() | GOLLY::MILLER | I need 'Deeper Understanding' | Mon Jan 22 1990 20:02 | 10 |
| <<< Note 2102.0 by ROM01::CADOLI >>>
-< Opening a display in batch mode. >-
Somewhere in your program you must be calling XOpenDisplay(). If you
really don't need to write to the display, don't do it, and you should
be all set.
Regards,
== ken miller ==
|
2102.2 | And the other Xlib routines ? | ROM01::CADOLI | | Thu Jan 25 1990 03:13 | 16 |
| >> Somewhere in your program you must be calling XOpenDisplay(). If you
>> really don't need to write to the display, don't do it, and you should
>> be all set.
Sorry, but I do not understand.
When I make reference to an Xlib routine (i.e. XCreatePixmap,
XLoadFont), the first parameter to pass is always a variable
of display type.
If I do not use the XOpenDisplay, how I can use the other Xlib
routines ??
Thank you for your help.
Michele Cadoli.
|
2102.3 | You are displaying | CLTVAX::dick | Dick Schoeller - Failed Xperiment | Thu Jan 25 1990 08:35 | 9 |
| Michele,
In order to make a Pixmap, you have to communicate with a display. It is off
screen memory associated with a display (it resides on the server side of the
wire not the client side). If you need to open a display when there is no
one logged in on it, you need to modify the host allowed file. There have been
other recent notes on just that topic.
Dick
|
2102.4 | you have answered your own question | AIRBAG::SWATKO | Electrons are cheap. Trees are not. | Thu Jan 25 1990 11:43 | 23 |
| Michele,
You have answered your own question.
From .2
> When I make reference to an Xlib routine (i.e. XCreatePixmap,
> XLoadFont), the first parameter to pass is always a variable
> of display type.
> If I do not use the XOpenDisplay, how I can use the other Xlib
> routines ??
Since you need to use X routines that use the display variable, you must
call XOpenDisplay. That's the only way you can get a properly defined
display variable. To call XOpenDisplay, you must supply a valid workstation
screen specification.
Therefore, the answer to your original question
> It is possible to run the application without having an open session
> on a VAXStation screen ??
is NO, you cannot run the application without having an open sessionon a
VAXStation screen.
-Mike
|
2102.5 | It ain't pretty | DSGN6::SCHOELLER | Who's on first? | Thu Jan 25 1990 19:53 | 14 |
| >is NO, you cannot run the application without having an open sessionon a
>VAXStation screen.
If by "open session" you mean being logged in, that just ain't so. If you mean
with an established connection to a server then you are right. If you run this
application in batch, you can SET DISPLAY to an available workstation. If you
have modified the hosts allowed file to give you access when you aren't logged
in then it will work. Even if you have done this it will not work when someone
else is logged in. If you want it to work when you are logged in you have to
modify your security customization to allow access from the node where the
application is running (assuming it is remote). It ain't pretty but it'll
work.
Dick
|