[comp.windows.open-look] core dump on XtDispatchEvent

hwlee@oahu.cs.ucla.edu (Hsing-Wen Lee) (06/21/91)

Hi:
	I am writing a screen driver using OLIT in open windows 2.0. In 
this program, I create a set of widgets for one screen according to some
structure preset by the program.( the structure of the widgets are ..
	toplevel widget
		|
	formWidget
		|
	a lots of widgets in the form(e.g. buttons,controlarea,statictext....)

 Then I use XtPopup to pop the toplevel up.  After this, the following statements are used to control the user input.
	for(done=FALSE;done!=TREU;){
		XEvent xevent;
		XtNextEvent(&enent);
		XtDispatchEvent(&xevent);
	}
	
'done' will be set to TRUE in some call back function of the buttons. After
the above loop, the form widget is destroyed. 


The above sequence is used repeatedly (one for each screen display).

Sometimes, the program will core dump at the RXtDispatchEvent(&xevent)S
statement after I click on the buttons.
	Does any body ever run into this kind of problem? Does this
have something to do with opening too many windows ?

	Please tell me if you have any idea about this. Thank you very much.

		Hsing-Wen Lee