DB connections running in parallel crashes
-
wrote on 4 Jul 2023, 04:31 last edited by
Hi,
I tried to work with 2 DB connections from 2 QT threads. Module LIBEAY32.dll crashes. It's OpenSSL library ,which can be thread safe, but some callbacks need to be implemented for this to work. So, my conclusion is that QT doesn't do that. Is it a known issue? What's the advice for such design?
Thanks,
JR -
Hi,
I tried to work with 2 DB connections from 2 QT threads. Module LIBEAY32.dll crashes. It's OpenSSL library ,which can be thread safe, but some callbacks need to be implemented for this to work. So, my conclusion is that QT doesn't do that. Is it a known issue? What's the advice for such design?
Thanks,
JR@JeniaR Do you really need threads for DB access? Qt is asynchronous. Also, can you provide the stack trace to see what exactly is happening? Can you show your code (especially: do you create all needed instances in the threads?)?
-
@JeniaR Do you really need threads for DB access? Qt is asynchronous. Also, can you provide the stack trace to see what exactly is happening? Can you show your code (especially: do you create all needed instances in the threads?)?
-
1/3