Hi All,
       Thanks for your valuable suggestions, I have
fased BadValue error in two of my programs, after
creating the color map using XCreateColormap()(instead
of default) this problem is solved in one of my
program, but the colors are comming some what
different manner, also XCreateColormap(...,AllocNone)
is working for AllocNone, it is giving error for
AllocAll, anyway I can able to run mutiple instances
also it is working when my netscape is open also.

my question is ***

  * The same way I am creating the colormap in my
second program also, but it is giving the same error
as BadValue major opcode failed for request: 89
(X_StoreColors), when I am trying to debug the program
it is getting failed as soon as execution reached the
XAllocColor() fn., but after creation of my own
colormap it is not getting fail at XAllocColorCells()
function even though my netscape is opened.

  * Is it really problem with XStoreColors or problem
with XAllocColorCells(now I am creating the color
map).

  ** How to debug this type of errors, while debugging
the control passes through the XStoreColors() with no
error.



Thanks in anticipation,
Bala.















--- Mark Vojkovich <[EMAIL PROTECTED]> wrote:
> 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


__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to