[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

895.0. "Can't Open Display??" by LEDDEV::BRASS () Wed Jun 07 1989 13:53

    What does it usually mean when you get an error message that sais
    "X Toolkit error: can't open display". This is from note #862.12,
    I am at a standstill and wanted to put it in a more recent light,
    (if this was inappropriate then please delete it). Any ideas would
    be appreciated. 
    		Bob Brass 

T.RTitleUserPersonal
Name
DateLines
895.1QUARK::LIONELB - L - Oh, I don't know!Wed Jun 07 1989 14:296
It usually means that the logical name DECW$DISPLAY is not defined to
be a display that can be opened.  Try a SHOW DISPLAY command to see what is
defined.

			Steve

895.2Polyvoo UltrixLEDDEV::BRASSWed Jun 07 1989 14:503
    Do you know what that would be on an ultrix system??
    		Bob

895.3read those release notesSTAR::BRANDENBERGSi vis pacem para bellumWed Jun 07 1989 14:586
    
    setenv DISPLAY vms_nodename_according_to_decnet::0
    
    after authorizing the ultrix system/user on the VMS node (see release
    notes).

895.4LEDDEV::BRASSThu Jun 08 1989 11:4218
    I am not sure I get the concept of DISPLAY. I have read the notes
    in this file on it and it always seems to refer to more than one
    system or a system whos decwindows are not working. I am just running 
    a program that opens a window and asks for information, I want to be
    able to hit return to go to the next line, I am using accelorators to 
    do it and XtCallAcceptFocus routine, but I get an error message can't open
    display when I hit return. What display am I trying to open? When
    I am not sure what the display is set for because I do not know
    how to find out, and when I change the display (setenv DISPLAY..) and
    then try to run the program I cant run the program at all.(same
    error message). Can anyone fill me in on the display mystery or
    point me to the appropriate documentation, There is nothing helpful
    in Ultrix Worksystem Software, worksystem User, release notes. (it
    is the orange covered book, probably to old). Any help would be
    appreciated, thanks in advance.
    		Bob Brass
    

895.5AITG::DERAMODaniel V. {AITG,ZFC}:: D'EramoThu Jun 08 1989 17:488
	Is your program displaying a window first, and then after
	you hit return (while it has the input focus) you get the
	cant-open-display error?   That (seeing its window) would
	mean that your program had already opened a display.  Why
	is it then trying to open it (or another display) again?

	Dan

895.6clarificationLEDDEV::BRASSFri Jun 09 1989 10:4938
    Re .5
    	Yes my program opens a window first. There are about five text
    lines that look like this;
    
    			name:|_________
    		     circuit:|_________
    		    password:|_________
    			     .
    			     .
    
    I enter name and then hit return and I want to go to the next line,
    I am trying to use accept_focus or a generic XtCallAcceptFocus to
    have the next line (circuit) accept the focus, then I will enter
    circuit and go to the next line, but when I hit return I get "Can't
    open display". My freind wrote a VMS version of this, with some help
    from Decwindows_programming notes file note #296. The details of
    the program are there. My problem is that I can't use XtCallAcceptFocus
    on my Ultrix machine running UWS 2.0 because as far as I can tell
    it does not exist. In VMS XtCallAcceptFocus is a call to
    XtAcceptFocusProc which is defined on both systems as 
    
        "typedef boolean (*XtAcceptFocusProc());" 

    In Intrinsic.h on a VMS system (but not on my ultrix system) there is
    	
    	"extern void XtCallAcceptFocus();"
    
    So in my program I try to define it as
     
    	"XtAcceptFocusProc XtCallAcceptFocus;"
    
    then I try to call it the same way: "XtCallAcceptFocus(widget, time)"
    I believe I am either declaring it wrong or calling it wrong but
    I need to know what "can't open display" means, or why it might
    be happening, to help figure it out.   
    			Thanks
    			Bob

895.7XtCallAcceptFocus is there in UWSFLUME::dikeFri Jun 09 1989 13:227
% nm /usr/lib/libdwt.a | grep ' T XtCallAcceptFocus'
00000070 T XtCallAcceptFocus

If it's not declared in a header, that may be a bug, but it doesn't mean it's 
not in the library.
				Jeff

895.8LEDDEV::BRASSFri Jun 09 1989 14:5810
    I tried #nm /usr/lib/libdwt.a | grep ' T XtCallAcceptFocus'
    and there was nothing, I tried #nm /usr/lib/libdwt.a | grep '00000070'
    and I got other things. I also tried 
    #nm /usr/lib/*.a | grep ' T XtCallAcceptFocus' and many variations
    including #nm /usr/lib/libdwt.a | grep 'Focus' and there was no
    XtCallAcceptFocus to be found. I am running UWS 2.0, any other ideas?
    maybe an equivelent command? 
    			thanks 
    			Bob 

895.9FLUME::dikeFri Jun 09 1989 16:394
I am running 2.1, so it looks like it was a late entry.  It looks like you will
have to call directly into the widget structure or install 2.1.
				Jeff