[comp.windows.x] Problem with menu widget

anil@csun10.cs.uh.edu (07/24/90)

I am using SmeLine object to add lines between menu entries. Actually, 
the menu button is contained in a popup window. Everthing works fine 
untill I want to quit and hence, destroy the popup window. At that
time the program crashes with the following messages:

                   X Error of failed request: BadGC (invalid GC parameter)
                     Major opcode of failed request: 60 (X_FreeGC)

If I don't use SmeLine object the program runs without any problem.
		     
I know that it is trying to free some GC. Since, I am not associating 
any GC with the menu I don't know what is happening.

I am using R4 and athena widgets on SUN 3/60.

My widget class hierarchy is shown below.

ApplicationShell
   Form
     Label
     Viewport
     Command
     MenuButton
       SimpleMenu
	 SmeBSB
	 SmeLine

Can anyone tell me what is wrong ?

Thanks in advance.

Anil
anil@cs.uh.edu