🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #6764

Segmentation violation in panel_paint

#6764
From: fredc
Date: Tue, 29 Jan 1991 20:49
24 lines
1737 bytes
I am writing a SunView application which uses a panel to present graphical
menus to the user.  Each time I put up a menu, I destroy all of the
current panel items and add different items to the panel.  In one
particular case, after clearing off the old items and adding some others,
I get a segmentation violation (discovered using dbxtool) some time after
displaying the newly reformed panel (i.e., it does not do this when
displaying the newly formed panel item array, but while other tasks are
being done).

The actual error message from dbxtool is:

signal SEGV (no mapping at the fault address) in panel_paint at 0xed6a3e6
panel_paint+0x4a:		tstl	a0@(0x52)

I think the problem might be that I am not getting all of the old panel
items deleted.  The way I am currently doing it is to save the panel item
pointers returned from the create functions in a linked list which I later
use to "panel_destroy" the items.  Is there a better or easier way to do
this, and how can I check if I got everything deleted?

Fred Clauss                  INTERNET:  fredc@isc.umr.edu (preferred)
P.O. Box 815                  		or fredc@ee.umr.edu
Rolla, MO 65401		     BITNET:    S081192@UMRVMA
phone: (314)364-7224
Technical Details
Message-ID: <1516@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: fredc@umrisca.isc.umr.edu
Newsgroups: comp.sys.sun
Subject: Segmentation violation in panel_paint
Keywords: Windows
Message-ID: <1516@brchh104.bnr.ca>
Date: 29 Jan 91 20:49:37 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 24
Approved: Sun-Spots@rice.edu
X-Sun-Spots-Digest: Volume 10, Issue 37, message 7
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu