@KoneTaH I don't unfortunately - it's a very complex project with lots of subprojects and libraries. I could probably share the toolchain file but looks like I might have figured it out thanks to @Shrinidhi-Upadhyaya
Basically, I have two class that inherits from QObject, one of them is on the main and the other is on a thread. They both contain a pointer to the other and used this pointer to read an change their values. I think it might be this direct synchronisation you are talking about.
My question is: Could this method have default that could result in a crash or any other thing that may make the application having some unexpected feature?
ps: Don't worry, your I'm not an english native neither and I perfectly understand what you are saying.
Well, what's the main thread doing? Is it just sitting/spinning waiting for the "background" thread to finish? How are you launching the thread? If you interrupt it in a debugger while it's in that state, what does it say the main thread is doing? Strangers on the Internet don't have any more insight into the situation than you do, if you don't share any details. You are the only one who has seen it!
what is the return value of the prepare() statement? It returns a success code as a bool
prepared statements are highly database and driver dependent. Also, they are generally for statements where you are doing parameter substitution, as arguably there is no benefit in preparing a statement with fixed parameter values. Prepared statements are a good example of an optimization that people use without totally understanding why.