Yes, the function in which the DLL is accessed runs within a thread.
But I don't understand how this can affect how filling a simple QString can behave differently before and after the DLL function is called.
I have attached a demo project, including the DLL, in a previous post, that can be used to reproduce the strange behavior I am observing, so that you can have a look if you want.