On Mar 25, 2007, at 12:31 PM, RBNUBE wrote:

> I've always been curious about this.  I have heard a lot of people  
> say not
> to do this, but I don't recall ever hearing any explanations as to  
> why you
> shouldn't do this.  Could you elaborate?


Sure.  What is it that App.DoEvents does?  Most everyone that uses it  
cannot answer this question.

As I understand it, DoEvents runs one iteration of the event loop.   
So, what happens during the event loop -- just about everything.  A  
lot happens under the hood over which we have no control.  That makes  
it very difficult to write code whose outcome you can predict.  You  
will see reentrancy, which means that you need to write reentrant- 
safe code in every method.  And if you use plugins, you'll need to  
contact the authors to ask them to do the same.

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to