DoEvents issue

Kevin

Well-Known Member
Licensed User
Longtime User
Erel (or whoever else knows):

I was wondering if you could please explain in somewhat simple terms what the DoEvents issue is or how that statement can produce an error or crash.

I seem to be confused as to how that statement got mixed in with the recycle twice thing, unless I have missed some other threads or posts.

My concern is that I published an app update today that added a bunch of DoEvents statements to see if it helps with some ANR freezes I've seen in my dev console. Most of these statements were inserted into For...Next loops that process lists and listviews.
 

Kevin

Well-Known Member
Licensed User
Longtime User
Thanks for the clarification. Will the update also address the MsgBox problem as well, or just DoEvents?

Can this happen if we only use Button_Click events or does it specifically have to be an Up or Down event with the MsgBox or DoEvents in it?
 

Kevin

Well-Known Member
Licensed User
Longtime User
Thanks again for the further clarification.

I'm not at home to check my code right now but I'm pretty sure I don't use Up or Down events for anything in my app. Click and Changed mostly.
 
Top