[comp.windows.x] Help! Program dies making X11R3 -> X11R4 switch!

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (01/08/90)

   cmp = XCreateColormap(dpy,win,DefaultVisual(dpy,DefaultScreen(dpy)),
    AllocNone);
   XAllocColorCells(dpy,cmp,False,&mask,0,pixels,256);
   XStoreColors(dpy,cmp,colors,256);

Insufficient information.  The little test program I just wrote worked fine
on a Sun 3/60 and a DECstation 3100.  What display are you using?  How many
colormap cells does xdpyinfo say exist?  Exactly how did the colors array get
initialized?  Can you provide a more complete program?