[comp.sys.mac.programmer] MPW C Dialog Boxes: AAARRGGHH!!

) (05/10/91)

AAARRRGGHHH!!

	My Problems with dialog boxes:

	1)  I finally have the boxes in my program working.  Most of
	the time.  Exceptions:
		a)	When I try to run them on an fx.  Unless it
		happens to be using Black & White for the current
		number of colors on the control panel.  When my app
		crashes on the fx, it takes the mac down with it (must
		be rebooted to continue).
		b)	Certain points in my program. Some 
		code works fine when called from a menu command, but
		crashes when activated by a content click as follows:
		the window comes up, the buttons are added, the
		application goes down in flaming wreckage.  This crash
		only reports that the application unexpectedly quit.

	I have had similar problems with SFgetfile stuff, but this
seems to have resolved itself (problem still unknown, I just reordered
the declarations of the variables in the proc that called SFget.. and it
worked.).
	Are these just weird MPW C problems?  Are there any answers?
Please help.


cal00872@uxa.cs.uiuc.edu


ps I really don't think that there is anything wrong with the code,
especially since it is so well behaved most of the time.  However, if
anyone else uses MPW C and HASN'T had any problems with their boxes,
I'd love to see their code to compare.