🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #844

Re: IV3.1Beta3 bug in Display::ungrab()

#844
From: Mark Linton
Date: Thu, 12 Nov 1992 19:32
11 lines
1289 bytes
In article <1992Nov11.111612.17589@Informatik.TU-Muenchen.DE>, roell@informatik.tu-muenchen.de (Thomas Roell) writes:
|> Ok I found a little bug in xwindow.c. The problem in the routine is
|> that from a list possibly more than one element is deleted. Hence
|> after the deletion of one element the list is one element shorter, but
|> ListItr only looks at instantiation time at the length of the list.
|> Due to this there is always a nonexisting element being referenced
|> (which breaks my application as one might have already guessed ...).

A better fix is to change ListItr to look at the count at each
iteration.  This solves some other problems as well.
Just change references to end_ to use count() instead.
Technical Details
Message-ID: <1dubh1INN9n3@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!sgiblab!sgigate!odin!fido!marktwain.rad.sgi.com!linton
References: <1992Nov11.111612.17589@Informatik.TU-Muenchen.DE>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!sgiblab!sgigate!odin!fido!marktwain.rad.sgi.com!linton
From: linton@marktwain.rad.sgi.com (Mark Linton)
Newsgroups: comp.windows.interviews
Subject: Re: IV3.1Beta3 bug in Display::ungrab()
Date: 12 Nov 1992 19:32:49 GMT
Organization: sgi
Lines: 11
Distribution: comp
Message-ID: <1dubh1INN9n3@fido.asd.sgi.com>
References: <1992Nov11.111612.17589@Informatik.TU-Muenchen.DE>
Reply-To: linton@marktwain.rad.sgi.com (Mark Linton)
NNTP-Posting-Host: marktwain.rad.sgi.com