Is this a test?? A key is being pressed while a menu is posted. This key is a
mnemonic for somthing, and we are therefore trying to Activate it. Problem is
that this sub-class of Primitive, whatever that is, does not have a class
ArmAndActivate proc. At first glance, we should not be making the call unless
(*act) != NULL.

On 13-Mar-01 at 03:41, Alexander Mai ([EMAIL PROTECTED]) wrote:
> Sometimes NEdit still crashes on LessTif-i86 linux.
> Can't reproduce this, but one problem might be almost
> located:
> I applied the following patch to Manager.c and meanwhile even have 
> an according core dump on my disk ...
> Can anyone comment on this based on this small code snippet
> what _might_ be wrong? I'll first try to get the Text memory leak
> done, this sounds perhaps easier to address/solve.
> 
> 
> diff -u -r1.90 Manager.c
> --- Manager.c   2001/02/07 12:07:08     1.90
> +++ Manager.c   2001/03/13 08:39:11
> @@ -1868,7 +1868,12 @@
>                 if (XmIsPrimitive(MGR_KeyboardList(w)[i].component))
>                 {
>                     act = PrimC_ArmAndActivate(XtClass(comp));
> -
> +if (act==0) {
> + fprintf(stderr, "act==0!!!\n");
> + fflush(stderr);
> + abort();
> + return;
> +}
>                     (*act) (comp, event, NULL, &num_params);
>                 }
>                 else if (XmIsGadget(MGR_KeyboardList(w)[i].component))
> 
> -- 
> Alexander Mai
> [EMAIL PROTECTED]
> 
> 

Reply via email to