This is a very specific question about general crashing safety.
This question is not about data consistency!
I have certain UI elements which are connected to values which live inside a ValueTree.
All my UI elements accessing/manipulating the values from the message thread.
Now I replace my root-ValueTree with another ValueTree from a background thread.
My UI-Elements than, of course, still referring to the old values/ValueTree, which I am aware of, this is 100% okay.
(The UI elements will tied to the new corresponding values/ValueTree from the message-Thread later)
So whats actually is happening, the reference count of the original ValueTree will be reduced and the ValueTree potentially destroyed.
Is it possible that this exchange of the root tree (aka changing the reference count/deleting the 0-referenced ValueTree Object) causes an access violation in any way?
(This is a theoretical consideration)
Please share your thoughts with me