> I can see how it might loop forever if it somehow failed to
> increment iSize in the while loop.

In order to test this conjecture, try rewriting that horribly terse loop in a 
more readable way and see what is happening at each step with the debugger. For 
instance, something like this:

for (i = eventP->data.popSelect.selection; i >= 0; i--)
{
        UInt16 flags, mask;

        do
        {
                iSize++;
                flags = sizes [iSize].flags;
                mask = 1 << equipType;
                flags &= mask;
        }
        while (flags == 0);
}

I'm not sure I understand the meaning of that code, though.

Regards,
Vesselin
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to