From owner-freebsd-libh Fri May 11 8:39:48 2001 Delivered-To: freebsd-libh@freebsd.org Received: from usw4.freebsd.org (usw4.freebsd.org [209.180.6.228]) by hub.freebsd.org (Postfix) with ESMTP id CE68137B423 for ; Fri, 11 May 2001 08:39:46 -0700 (PDT) (envelope-from alex@usw4.freebsd.org) Received: (from alex@localhost) by usw4.freebsd.org (8.11.3/8.11.1) id f4BFeIb52740 for libh@FreeBSD.org; Fri, 11 May 2001 10:40:18 -0500 (CDT) (envelope-from alex) Message-Id: <200105111540.f4BFeIb52740@usw4.freebsd.org> From: Alexander Langer Date: Fri, 11 May 2001 10:40:18 -0500 (CDT) To: libh@FreeBSD.org Subject: cvs commit: libh/lib/hui HuiTVision.cc Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG alex 2001/05/11 10:40:18 CDT Modified files: lib/hui HuiTVision.cc Log: TVision is defenitely broken or I am still missing something very strange. When removing TViews from TGroups, TVision segfaults if one removes all items. If you keep the last item, everything is ok. A workaround is to just hide() all items on the window [1] and delete it from OUR subwidgets list. This works just nice. I've kept the original code and added a XXX. This should be fixed because it's a memory leak of course, but it's more important to have that work. [1] TVision does that as well internally, after a removeView() Also, while I am here, show the scrollbars of a TextEdit widget, I first thought that is the reason for the above and so I already added to code. Revision Changes Path 1.25 +14 -8 libh/lib/hui/HuiTVision.cc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message