Unsolved Need lock for model and view?
-
They may access/modify data simultaneously.
For example, it's possible that the model is deleting data while the view is accessing deleted data. But with a lock, the view becomes slower, and it locked data frequently.
What's the proper way?
-
Are you using multiple threads?
-
@VRonin said in Need lock for model and view?:
Are you using multiple threads?
Maybe.
Posting event to the UI thread seems a good solution.