unable to allocate enough cells for gray scale

Hi,
I tried to install a software (written in C) and run it on a sun machine.
It is displaying the error:
unable to allocate enough cells for gray scale.

I closed all other apllications and set background to black to minimize usage of cells. But it is diaplaying the same error.

Plz help me.

-raz

CDE itself uses 8-bit color depth (256 colors) by default. This is acceptable, as each window can define its own individual color depth. Some frame buffers only have one color table. This may cause color map flashing with some applications. A workaround for this is to start CDE itself with 24-bit color depth.
eg.:
On PGX, you have to switch the frame buffer to 24-bit with fbconfig -depth 24.
Note: Some legacy applications expect the default visual to be 8-bit, not 24-bit. This can cause problems.

copy /usr/dt/config to /etc/dt/config and edit the last line:
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -dev /dev/fbs/ifb0 defdepth 24 -dev /dev/fbs/ifb1 defdepth 24 -nobanner