Re: [Plib-devel] PUI crash in Tuxkart.
Brought to you by:
sjbaker
|
From: Steve B. <sjb...@ai...> - 2000-10-05 02:50:27
|
Norman Vine wrote:
> with the preceding code when clicking on the menubar
> in Tuxkart I get ...
>
> puMouse: button 0 updown 0
> puOneShot::doHit:
> puButton::doHit:
> puActiveWidget()->getDownCallback() 1
> @#% CRASH
> notice that "calling puDeactivateWidget()" is never printed
That's pretty much where it dies for me too - although GDB
catches it just on the call to puButton::doHit.
Someone else said they see subtly different symptoms - and
yet someone else said they could also reproduce it with
Tux_AQFH....for me, Tux_AQFH seems to run correctly.
So this is a somewhat random event.
> I do not believe that Tuxkart ever sets a DownCallback
> hence
> puActiveWidget()->getDownCallback() should return 0
Right. The menu bar should (internally) register a callback
that causes the menu to drop-down when the button is clicked.
> obviously calling what ever lives at
> address 1 is bound to cause problems !!
>
> The activeWidget is getting stomped on or at least
> it's DownCallback() is being set to a non NULL value
> but I do not know by whom yet -- Plib or Tuxkart
From what I could tell, pretty much all the fields of the
puOneShot were being corrupted...this may be a symptom
rather than a cause...however, separate UP and DOWN
callbacks are relatively new and should be suspected
here.
--
Steve Baker HomeEmail: <sjb...@ai...>
WorkEmail: <sj...@li...>
HomePage : http://web2.airmail.net/sjbaker1
Projects : http://plib.sourceforge.net
http://tuxaqfh.sourceforge.net
http://tuxkart.sourceforge.net
http://prettypoly.sourceforge.net
|