[comp.unix.aux] Problem with ZBasic Code

paragano@pedsga.UUCP (Vince Paragano) (09/26/89)

Hello Mac Newsworld,
	I need some help.  I am using Zbasic 4.01 by Zedcor Corp. to
write a stand-alone Mac application.  The application of course
makes use of the interface (menus,buttons,windows,etc..)  Event
trapping is used for Dialog, Menu, Timer, and Break events as per
the example in the Macintosh appendix of the manual.  The example
they supply works fine but after I modified it, it CRAPS OUT!
I have the Menu manager set up to branch to a "Menu" routine upon a
menu event.  In the "Menu" routine is:

	"Menu"
	.
	.
	.
	M0=MENU(0)	: 'returns the menu selected
	M1=MENU(1)      : 'returns the menu item from M0
	(whole bunch of IF/THEN's in here for other menu items)
	IF M0=5 AND M1=4 THEN END
	.
	.
	.
	RETURN

It crashes the system when I selected Item 4 from Menu 5.	
WHY??????  I've checked and re-checked a million times and I can't find
the problem with my logic.  I get system error #25 when my Mac dies.
The ZBasic manual shows error #25 to be: Can't allocate Mem block. 
This doesn't make sense though cause it craps out on a Mac II just
the same with plenty of memory to spare.  The application is just a
skeleton, very small (8 pages of source text).  What is going on????
Can anyone help (preferably someone who has coded in ZBasic)??????

Thanks in advance.

						Vince Paragano
					Concurrent Computer Corporation