detecting read only colorcells again poseted for a friend okay i got such great response from my last question thanks everyone lets try again how can i tell if a colorcell is read only i want to use any read only cells that are already in my colormap once i start running out of allocatable cells using some arbitrary nearest color matching scheme to get those cells that come closest to a requested color once i determine if a cell is read only i assume i can then just request an xalloccolor with the exact same color specifications and it will then be flagged as used by my application so that it doesn t later get freed by someone else and allocated again as read write to another application so far the only way i ve figured out to do this is to write my own error handler and just go ahead and request the cells colors once my colormap is all full up it should error out if the cell is non shareable but life would be much easier if i could just detect the read only shareable stuff directly any ideas noel ngorelic speclab cr usgs gov
