Alan -
You could validate that the thread ID's are the same by using the function CurrThreadId() in the Utility library.
For TestStand, the only way to guarentee that a child panel is loaded properly at a later time is if both the original parent panel and the child panel were loaded during a external call using a code module and they are in the same TestStand execution thread.
If you are loading panels in DLLMain, you cannot predict the threads that will load the panels. If you need to do this, then you must host your own internal worker thread to host the panel.
Scott Richardson (NI)
Scott Richardson
https://testeract.com