[comp.sys.mac.programmer] problems with waitnextevent

siochil@csgrad.cs.vt.edu (Lucia Siochi) (02/14/91)

I am writing a toolbox program that runs under a/ux 2.0, and am having
problems with WaitNextEvent.  First I do some initializations and some
setting up.  Then I get into the event loop, which proceeds to update
my windows.  After the updates are done, WaitNextEvent returns FALSE
during the next four iterations of the loop, then on the fifth iteration, 
(at the call to WaitNextEvent), the system draws a dialog box indicating 
a system error.  (It indicates ID = <#>, at the bottom, but <#> is obscured 
by the dlog box's borders!)  At this point, I have to do a ctrl-cmd-I (or E) 
to regain control.

One reason I think I'm having problems is that I started writing this
program under a/ux1.1, and am trying to complete it under 2.0.
I did not have to worry too much about multifinder under 1.1!
I am now using the mac32 environment (the system won't let me use mac24),
and have also included a size resource.

HELP!!!  Getting this program to work has a lot to do with when I graduate,
(or whether or not I graduate)!  I've looked in some books and manuals, 
but if the answer is in any of them, I must have missed it.  
If anybody has any idea what's going on or what could
be wrong, please send me email.  I will gladly post a summary, if
anybody else is interested in what I find out.


Thanks in advance,
Lucia Siochi
siochil@csgrad.cs.vt.edu