[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20000607: nmap2 call to NxmMarkA_sizeCb




Scott,

I've found that Solaris core dumps when trying to bring up nmap2.

The sequence is:

nmap.c
   mapw_create()
      NxmMarkA_create()
             calls realize widget --> XtRealizeWidget(_markW)


In realizing the widget, NxmMarkA_sizeCb is called:

void   NxmMarkA_sizeCb(w, data, call)
{

        if (call != (XmScaleCallbackStruct *) NULL)
                _mkAttrEdit->size = (float)call->value/10.0;

}



At this point, *_mkAttrEdit is NULL, and the core dump.
 *_mkAttrEdit is static and given a value in NxmMarkA_popup()
and *_popdown(). 

I can avoid this by checking for if(_mkAttrEdit != NULL). I haven't 
checked yet as to why the realizing of the widget enters the callback.

Steve Chiswell
Unidata User Support