| 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 | 
                    --< XLIB error message >--
  program spec :
     everytime,       
     X_CreateGC - X_ChangeGC - X_PolyText8 - X_FreeGC 
  1. this program executed.   -------  non-problem.                    
  2. suddenly output XLIB-error messages to disply.  ----  what's happened ?
   Output Message :
   
   X error event recived from server: BadIDChoice - invalid resource ID for 
this connection
     Failed request major op code 55 X_CreateGC
     Failed request major op code 0 (if applicale)
     ResouceID 0x480000 in failed request (if applicable)
     Serial number of failed request 2102085
     Current serial number in output stream 2103983
   %XLIB-E-ERROREVENT, error event recived from server
   %TRACE-E-TRACEBACK, symbolic stack dump follows
   mdule name      routine name             line    rel PC   abs PC  
     
                                                   0032AF7F  0032AF7F
                                                   0032ADC8  0032ADC8
                                                   0032C33B  0032C33B
                                                   0032A626  0032A626
                                                   00322D5B  00322D58
                                                   002DD76E  002DD76E
                                                   002DCEF5  002DCEF5
                                                   002ECEE0  002DCEE0
   BQ2000          main                   13164    00000BB5  001657C5
   X error event recived from server: BadGC - parameter not a GC
     Failed request major op code 56 X_ChangeGC
     Failed request major op code 0 (if applicale)
     ResouceID 0x480000 in failed request (if applicable)
     Serial number of failed request 2102086
     Current serial number in output stream 2103983
   %XLIB-E-ERROREVENT, error event recived from server
   %TRACE-E-TRACEBACK, symbolic stack dump follows
   mdule name      routine name             line    rel PC   abs PC  
     
                                                   0032AF7F  0032AF7F
                                                   0032ADC8  0032ADC8
                                                   0032C33B  0032C33B
                                                   0032A626  0032A626
                                                   00322D5B  00322D58
                                                   002DD76E  002DD76E
                                                   002DCEF5  002DCEF5
                                                   002ECEE0  002DCEE0
   BQ2000          main                   13164    00000BB5  001657C5
   X error event recived from server: BadGC - parameter not a GC
     Failed request major op code 74 X_PolyText8
     Failed request major op code 0 (if applicale)
     ResouceID 0x480000 in failed request (if applicable)
     Serial number of failed request 2102087
     Current serial number in output stream 2103983
   %XLIB-E-ERROREVENT, error event recived from server
   %TRACE-E-TRACEBACK, symbolic stack dump follows
   mdule name      routine name             line    rel PC   abs PC  
     
                                                   0032AF7F  0032AF7F
                                                   0032ADC8  0032ADC8
                                                   0032C33B  0032C33B
                                                   0032A626  0032A626
                                                   00322D5B  00322D58
                                                   002DD76E  002DD76E
                                                   002DCEF5  002DCEF5
                                                   002ECEE0  002DCEE0
   BQ2000          main                   13164    00000BB5  001657C5
   X error event recived from server: BadGC - parameter not a GC
     Failed request major op code 60 X_FreeGC
     Failed request major op code 0 (if applicale)
     ResouceID 0x480000 in failed request (if applicable)
                ��
                ��
   WHAT'S HAPPENED ?   Please tell me.
   Best Regards.
        masao yamazaki
| T.R | Title | User | Personal Name | Date | Lines | 
|---|---|---|---|---|---|
| 3371.1 | Ran out of resource IDs | LOWELL::KLEIN | Fri Sep 28 1990 13:23 | 12 | |
| You ran out of resource ID numbers. Each client is assigned a limited range of ID numbers and the current implementation of XLIB does not recycle them when the corresponding resources are freed. If you are interested, I can post code that allows you to re-use resource IDs with some small changes to the application. Another approach is to cache resources (GCs, etc) yourself rather than destroying and recreating them. This second approach is not always so easy but may result in more efficient code (less work for the server to do, but possibly more for the client). -steve- | |||||