[comp.windows.interviews] Core dump in ibuild-3.0beta!

dnichols@goddess.csc.ti.com (Dan Nichols) (05/04/91)

I'm getting a reproducible core dump in ibuild-beta.

I'm trying to build the "Sted" example from the Ibuild User's Guide. In trying
to relate the Up/DownMovers to the FileBrowser I consistently get ibuild to 
core dump.

The setup I've got is roughly the following:

I build a Filebrowser with a vertical scroller on the right side.
The UpMover, VerticalScroller, and DownMover are composed in a VBox.
The Filebrowser is then composed in a HBox with the scroller VBox.
This was all wrapped in a Dialog Subclass.

Using Examine I changed the Dialog subclass "class name" to "Foo".
I then examined the Filebrowser and tried to change the following:

Member name: browser
Buttonstate: browserbs
Member function: browserselected

Making any of these three changes, individually or together, results in a core
dump when the "OK" button is selected.

The reason I want to make those changes is so I can set the "instance adjusted"
field in the Up/DownMovers to "browser". This is the way things appear to be
done in the dialog box for alpha doc, which is the only good ibuild application
I've found to use as a model.

Any help will be greatly appreciated.


Dan
Dan Nichols            UUCP:  {allegra,ihnp4,uiucdcs,sun}
POB 655474 M/S 238            !convex!infoswx!ti-csl!dnichols
Texas Instruments Inc. ARPA:  dnichols@csc.ti.com
Dallas, Texas 75256    VOICE: (214) 995-0755

tang@braun.stanford.edu (Steve Tang) (05/17/91)

The destructor of BooleanStateVarView deletes the buttonstate which
has been destroyed by the checkbox causing ibuild to crash after
either the stringbrowser's and filebrowser's info dialog box is
removed.  The following patch solves the problem.

Apply with "patch -p -N < fix9" at the top of the source tree


*** iv/src/bin/ibuild/ibvarviews.c.orig	Thu May 16 16:19:40 1991
--- iv/src/bin/ibuild/ibvarviews.c	Thu May 16 16:22:35 1991
***************
*** 900,906 ****
  }
  
  BooleanStateVarView::~BooleanStateVarView () {
-     delete _bstate;
      delete _message;
  }
      
--- 900,905 ----


Steven Tang
tang@interviews.stanford.edu