[995] in Zephyr_Bugs
XAllocColor issue on Solaris 2.6
daemon@ATHENA.MIT.EDU (Mike Smith)
Tue Feb 22 20:35:44 2000
Message-Id: <38B339AF.E252493@us.oracle.com>
Date: Tue, 22 Feb 2000 20:36:47 -0500
From: Mike Smith <mismith@us.oracle.com>
Mime-Version: 1.0
To: Marc Horowitz <marc@MIT.EDU>
Cc: bug-zephyr@MIT.EDU
Content-Type: multipart/mixed;
boundary="------------6202503537177A656B69681F"
This is a multi-part message in MIME format.
--------------6202503537177A656B69681F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Marc Horowitz wrote:
>
> Mike Smith <mismith@us.oracle.com> writes:
>
> >> The more important issue for us is the use of colors when sending
> >> windowgrams/zwrites. When it comes to colors in normal zwrite, we get
> >> mixed results. For a day or two, all colors work, after this, one color
> >> may work and then a day later, no colors work (only black text). When a
> >> particular color fails, an error is received like the following "zwgc:
> >> Error in XAllocColor on "whatever color": using default color.
>
> I can't help you with your xzwrite problem, but the color problem I
> can explain.
>
> zwgc allocates colors as they are used, but there is no mechanism in
> zwgc for keeping reference counts on colors so they can be
> deallocated. What is happening is that your colormap is filling, and
> then there are no more new colors available to you. Colors which have
> been previously used by zwgc, or are in current use by any
> application, should continue to work.
>
> The simple workaround is to kill zwgc, and run it again.
> Marc
Is there another way to "deallocated" these colors from the color map?
If it requires a cron job or something else I am fine with that, it's
just that we typically don't restart a zephyr session for a week or
more. On Solaris 2.51 we had full use of colors and seldom shutdown
zwgc sessions (somebody may created a mechanism for de-allocation on
colormap our end and I am not aware of it).
Thanks for the very prompt response BTW!!
--------------6202503537177A656B69681F
Content-Type: text/x-vcard; charset=us-ascii;
name="mismith.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Mike Smith
Content-Disposition: attachment;
filename="mismith.vcf"
begin:vcard
n:Smith;Mike
x-mozilla-html:TRUE
org:Technical Team Lead NCA;Application Object Library <img src=ftp://oracle-ftp.oracle.com/apps/patchsets/gifs/oracle.gif>
adr:;;;;;;
version:2.1
email;internet:mismith@us.oracle.com
title:Technical Analyst
note:The Internet Changes Everything!
fn:Mike F. Smith
end:vcard
--------------6202503537177A656B69681F--