🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #36536

Problem Deleting and Creating StripChart Widget

#36536
From: Tim Becker
Date: Thu, 08 Feb 1990 03:06
27 lines
1815 bytes
I wrote a tool under R3 that puts load, biff, and clock widgets all in
one program.  In addition, I added a command widget that changes the
info displayed in the load widget (load avg, packets in+out, network
collisions, cpu usage).  It does this by deleting the current load
widget and creating a new one.

When porting this to R4, I had to change the load widget to a
stripchart widget.  When I click my command button to change the stats
displayed in the stripchart, I get a BadGC server error.  If I watch
it carefully, all seems to be well (the current stripchart widget gets
destroyed, a new one gets created, the new one is displayed) until the
first time it has to display a value.  Then I get the BadGC error.

Af first I thought it might be my program.  So, I wrote a small
program that created a form widget containing a command widget and a
label widget.  When I click the command widget, it destroys the
current label widget, increments a counter, and creates a new label
widget displaying the counter value.  This runs fine.  I can click
away -- no problem.  I then replaced the label widget with a stripchart
widget (without putting in a routine to call to get a value to
display).  If I click 3 times, I get a core dump (segmentation
violation, I think).

I'd be glad to submit a report to xbugs, but I want to be sure this a
bug with X11 R4 and not my mistake.  Any help?

Tim Becker.
Technical Details
Message-ID: <9002080306.AA13961@mango.cs.rochester.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!yale!mintaka!bloom-beacon!CS.ROCHESTER.EDU!becker

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!yale!mintaka!bloom-beacon!CS.ROCHESTER.EDU!becker
From: becker@CS.ROCHESTER.EDU (Tim Becker)
Newsgroups: comp.windows.x
Subject: Problem Deleting and Creating StripChart Widget
Message-ID: <9002080306.AA13961@mango.cs.rochester.edu>
Date: 8 Feb 90 03:06:56 GMT
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Lines: 27