Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Help! Program dies making X11R3 -> X11R4 switch! Message-ID: <9001081435.AA00699@expire.lcs.mit.edu> Date: 8 Jan 90 14:35:34 GMT References: <1990Jan8.050430.21144@polyslo.CalPoly.EDU> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 10 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?