bzs@ENCORE.COM (Barry Shein) (01/14/89)
On the Multimax (and probably a lot of other machines) most buttons tended to cause core dumps, List was particularly annoying... The problem is that the Text sources aren't having all their fields, specifically function pointers, zeroed (except by accident) and some of the Text widget routines rely on NULL pointers to know not to call these things, so they end up getting dispatched off into 23rd and Ely causing much bewilderment. Put more simply, in ap.c in the function TCreateApAsSource() change that first call to XtMalloc (src = XtMalloc(...)) to an equivalent call to XtCalloc(1,...) so it gets zeroed and see if you make it thru the tunnel. I think the code also tends to reverse the args to XtCalloc() all over the place tho I think that's generally harmless (ie. XtCalloc(nelems,size).) -Barry Shein, ||Encore||