On Tue, 4 Dec 2001, Ba la wrote:
> Hi All,
> I have two example programs using
> XAllocColorCells() and XStoreColors(working in 8bpp),
> when I run seperately each program works fine, but if
> one program is executing the other one giving the
> error as
>
> BadValue(integer parameter out of range for
> operation)
> Major opcode of failed request : 89 (X_StoreColors)
Most likely XAllocColorCells failed and you're trying
to store a color you haven't allocated.
>
> It is happening when i Opened netscape also, how to
> avoide this error, but it is not giving error while
> allocating the cells, I am confused whether it is
> really problem with allocation or storing, how to
> check for the proper storing of colors.
>
There's only 256 total colors on the default map to be
shared by all applications using it. I believe Netscape
allocates 64. You can create your own map and use that
instead of the default map. You will have all 256 colors
to you application if you do that, however, you get
"color flashing" as focus changes from one window to the
next and the X-server swaps the single hardware map.
Basically, PseudoColor sucks.
Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert