If the user will press two buttons fast one after other, VCL will not wait for the first user action to finish and will start the second, suspending first execution.

If the user will press two buttons fast one after other, VCL will not wait for the first user action to finish and will start the second, suspending first execution.
Then, after second executions is finished, first execution will continue but with modifications made by the second execution. This will lead to very strange errors.
For this problem do I need to build my own queue?

Comments

  1. David Heffernan Do you consider that answer to be a helpful answer?

    ReplyDelete
  2. Ole Harald​ Yes. Do you really find yourself accidentally pumping the queue? Is it so hard not to pump it? The asker here has code that explicitly pumps the queue. That needs to go.

    ReplyDelete

Post a Comment