GRASS 4.0 allows up to 60 cell files open. But if you call
G_close_cell() that really does close a cell file and its file
descriptor. Perhaps in other parts of your program you have
forgotten close other (non-raster) files. This could make it
impossible for GRASS to open cell files.
What problems are you having with colors?
-----------------------------------------------------------------
Michael Shapiro U.S. Army CERL
email: shapiro@zorro.cecer.army.mil Environmental Division
phone: (217) 352-6511 ext 526 P.O. Box 9005
fax: (217) 373-7222 Champaign, Ill. 61826-9005
-----------------------------------------------------------------