Bug? wait for on debug

Discussion in 'Bugs & wishlist' started by Dey, Jul 5, 2018.

  1. Dey

    Dey Active Member Licensed User

    Hello to all
    This attached example does not work in debugging
    try in released
    and debugged
    Thank you

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Your code is wrong. You should never use CallSub to raise an event that is intercepted with Wait For. Use CallSubDelayed instead. Otherwise there is a chance that the event will be raised before the wait for line was reached.

    Anyway, your approach here is wrong and will likely to cause all kinds of problems. You should instead wait for subs that return ResumableSubs. Including in the first call that is done from the activity.
  3. Mahares

    Mahares Well Known Member Licensed User

    I made the changes to your code in your above project that were suggested by @Erel and it seems to work for me in debug and release modes. I hope this is the result you are trying to achieve. See attached project:

    Attached Files:

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice