markley@net1.ucsd.edu (Mike Markley) (08/15/89)
I have written a menu widget that is an extension of the
example menu widget. All I added was checkboxes to allow items
in the list to be checked or unchecked so a user knows what the
last item selected was. The example program works fine with
this new menu widget but when I install the widget into my
actual application bad things happen. The main symptom appears
to be that something walks across the memory that has been set
aside for X to allocate space from. I get either an X error
about the inability to allocate any space or I get a memory
fault from within malloc() called from Xtmalloc().
The symptoms only appear if I cause a menu to be popped up by
MenuPopup("MyMenu") installed as a button translation. If I
never cause any of the menus to be popped up my program seems
to work. If I pop up a menu then my next attempt to create any
type of X window or widget is met with a memory fault/malloc
failure. Any and all information would be apreciated.
Mike Markley
Enfin Software Corporation
San Diego CA. These opinions are mine! I think?
Mike Markley
markley@net1.ucsd.edu
The opinions here are mine and do not always agree with my
employers. Reader discretion is advised.