[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

723.0. ""Sequence lost" msg" by SX4GTO::HOLT (Hi! I'm Don Corleone) Wed May 03 1989 18:33

    
    It seems that when I clear the X event queue with XSync(dpy,True),
    Xlib sends a message:
    
    "Xlib:  sequence lost (0x1009a > 0x9b) in reply type 0x6!"
    
    This is unsightly. Why can't my client throw away events
    without Xlib giving me grief about it?
    
    From looking at the routine sending the message, it seems that
    it fires whenever there is a break in sequence numbers. Is that
    a dangerous condition, or was this a debug statement accidentally
    left in?

T.RTitleUserPersonal
Name
DateLines
723.1STAR::BRANDENBERGSi vis pacem para bellumWed May 03 1989 18:396
    
    No, it's an interesting message not a debug statement left in.  How
    about some details on what you're doing to cause it?
    
    						m

723.2exampleSX4GTO::HOLTHi! I'm Don CorleoneWed May 03 1989 19:4146
/* async event handler - used by button handler while out to lunch*/
void async_event()
{
    int  remaining;
    char event_type[16];
    XEvent ret_event; 
    XExposeEvent *event; 

    remaining = XPending(dpy);
    
    /* only interested in exposures - retrieve them then off queue */
    while (XCheckMaskEvent(dpy,ExposureMask,&ret_event) == True)
    {
        event = (XExposeEvent *) &ret_event;
        printf("Queued Expose Event - win %x area %d x %d, %d events remaining\n",
        event->window,event->width,event->height,remaining);
    }
    XSync(dpy,True);                                       
}                                                          
    
/* button handler */                                       
void G_Btn_Handler(widget,data,event)
Widget widget;
unsigned long data;
XButtonEvent *event;
{
    int remaining;

    remaining = XPending(dpy);
    printf("Button Event, %d events remaining\n",remaining);
    
    /* async eh is asked to mind store */
    XSelectAsyncInput(dpy,XtWindow(widget),
        PointerMotionMask|ExposureMask|ButtonPressMask|ButtonReleaseMask,
        async_event,NULL);
    
    /* simulate lots of cpu intensiveness */
    sleep(4);                            
    
    /* async eh relieved of duty until needed again */
    XSelectAsyncInput(dpy,XtWindow(widget),
        PointerMotionMask|ExposureMask|ButtonPressMask|ButtonReleaseMask,
        NULL,NULL);
}

723.310481::HOLTfast horses, mint juleps...Thu May 11 1989 14:193
    
    It's been over a week, so I'll assume it's broke and qar it...