On Feb 16, 2006, at 5:05 PM, jon pipitone wrote:

Mike Woodworth wrote:
yep, loop ends yield to the main loop, and the DisableBackgroundTasks pragma is the proper solution.

If this is in fact what is happening, then isn't this a big fat bug? I mean, no one wants compiler optimizations causing this sort of wacky behaviour, and no one wants to put pragmas around every loop.


it may be a bug in the documentation - i know this behavior has been discussed on the list a lot - but i don't think its documented.

as i see it, there are two ways for realbasic to handle async operations... add yields for you (and provide a means via disablebackgroundtask to override it) or the opposite - never yield and make users sprinkle their code with yield calls. either way is going to burn people. you are one such fatality - but given that you figured out the problem yourself and were able to correct it means they probably erred on the right end of this. the problems you see are more likely to occur less often and to more advanced programmers, whereas the flip side will make all novices' code painfully blocky and sluggish, and puts undo burden on new adopters.

mike
--
Mike Woodworth
[EMAIL PROTECTED]

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to