🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #541

Re: scrolling of TBScollBox

#541
From: Mark Linton
Date: Thu, 27 Aug 1992 17:01
37 lines
1686 bytes
In article <1992Aug27.062744.7444@tom.rz.uni-passau.de>, ringel@forwiss.uni-passau.de (Joerg Ringel) writes:
|> I've a class with a TBScrollBox (TextShow).
|> For this class I've defined the following function:
|> 
|> class TextShow : public InputHandler {
|> 
|> ....
|> ....
|> protected:
|>   TBScollbox* box;
|> ....
|> }
|> 
|> inline void TextShow::scroll_to_end()
|> 
|>    { box->scroll_to(Dimension_Y, Coord(0)); }
|> 
|> 
|> My problem is that I receive always:
|> 
|> signal SEGV (no mapping at the fault address) in allocate__7ivPatchFP8ivCanvasRC12ivAllocationR11ivExtension at 0xf766b0f0
|> allocate__7ivPatchFP8ivCanvasRC12ivAllocationR11ivExtension+0x34:   ld      [%o1 + 4], %o2
|> (xdbx) where
|> allocate__7ivPatchFP8ivCanvasRC12ivAllocationR11ivExtension() at 0xf766b0f0
|> reallocate__17ivTBScrollBoxImplFv() at 0xf76871c8
|> refresh__17ivTBScrollBoxImplFv() at 0xf7686eec
|> impl__13ivTBScrollBoxCFv() at 0xf7686ce0
|> scroll_to__13ivTBScrollBoxFUif() at 0xf7686bec
|> scroll_to_end__8TextShowFv(__0this = 0xe9208), line 469 in "xrapiv/rapiv.c"

TBScrollBoxImpl::reallocate should have a test

	if (canvas_ == nil) {
	    return;
	}

at the beginning.
Technical Details
Message-ID: <p3q3d8s@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!odin!fido!marktwain.rad.sgi.com!linton
References: <1992Aug27.062744.7444@tom.rz.uni-passau.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!odin!fido!marktwain.rad.sgi.com!linton
From: linton@marktwain.rad.sgi.com (Mark Linton)
Newsgroups: comp.windows.interviews
Subject: Re: scrolling of TBScollBox
Message-ID: <p3q3d8s@fido.asd.sgi.com>
Date: 27 Aug 92 17:01:13 GMT
References: <1992Aug27.062744.7444@tom.rz.uni-passau.de>
Sender: news@fido.asd.sgi.com (Usenet News Admin)
Reply-To: linton@marktwain.rad.sgi.com (Mark Linton)
Organization: sgi
Lines: 37