Re: your mail

From: Jeff W. Boote (boote AT unknown)
Date: Fri Mar 17 1995 - 12:45:38 MST


> I am trying to open multiple X11-windows (using gopwk), and then to
> assign a color-table containing 80 colors to each window, using
> "call gscr(wkid,i,r,g,b)".
>
> This works fine for the first 3 windows, but for the 4-th, gscr returns
> error -1. If I reduce the number of colors in the table to, say 20,
> I have no problems. Clearly, this indicates some sort of size-limitation.
> Are there any solutions to my problem (I am stubborn and want at least
> 80 colors and 8 windows)?
> .....................................Thanks for any suggestions!

You are running out of "X" colors. The NCARG GKS X Workstation, allocates
all of its colors read-write if it can. This means that each individual
window you put up, is requesting 80 private X colors. Most X displays are
only capable of displaying 256 colors. Actually, you are lucky to get 3
windows up before you run into problems. If you were running Netscape or
FrameMaker at the same time you would probably only be able to do one
window.

There really isn't a solution to your problem, with Version 3.2.1 NCARG.
However, we have addressed this problem for Version 4.0. Beginning with
V4.0, the NCARG GKS X Workstation will attempt to be a "friendly" X
client. It allocates its colors read-only from the X colormap. That way
the colors can be shared with other applications, and other GKS X
Windows. If the X Workstation is unable to allocate a color, it will use
the closest one it can find. Additionally, there is also an option to tell
the X Workstation to install a private colormap for the window, so you can
actually have a full 256 colors in each window. (This option can have strange
side effects for your other windows.)

jeff

-- 
Jeff W. Boote  <boote AT unknown>     ***************************************
Scientific Computing Division            * There are more things in heaven and *
National Center for Atmospheric Research * earth, Horatio, Than are dreamt of  *
Boulder                                  * in your philosophy.          Hamlet *
                                         ***************************************



This archive was generated by hypermail 2b29 : Wed Jun 28 2000 - 09:40:24 MDT