Hi Community,
At the time of running my application, I need to instantiate an object.
The object creation takes time (about 10 seconds) and this leads to the consequence that the GUI is not shown until the object is created.

To work around this I thought of creating the instance in a second thread (thread B) but in this case the thread B is the owner of the instance is that right?
How can I transfer the ownership of the object to the main thread once it's been created? Is there any better solution?

Regards,
Franco