I have a textbox component that is a DocumentWindow. I have a separate thread that I would like to enable to send strings to this component and have it display them.
The component works, except of course that another thread can’t update it without causing threading issues. I tried MessageManagerLock but that sometimes gets stuck.
How can I safely do this? Is it possible to use a thread-safe queue of strings and have the component check that queue and pull the data from it?