[SOLVED] Problem with QThread on a single computer
-
wrote on 3 Sept 2022, 14:43 last edited by Linhares 9 Mar 2022, 15:48
I have a program that works correctly on my computer and on many users' computers. However, a new user has reported an error when he tries execute a process that involves a new thread.
Here's the message he gets:
QObject: Cannot create children for a parent that is in a different thread.(Parent is Class1(0x9597868), parent's thread is QThread(0xd3bba8), current thread is Class1(0x9597868)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QSerialPort(0x4ae01a8), parent's thread is Class1(0x9597868), current thread is QThread(0xd3bba8)What makes me puzzled is that other users don't get this error.
The user who has the issue is using Windows 10, the same as everyone else is using.
What would explain this odd behavior? -
I have a program that works correctly on my computer and on many users' computers. However, a new user has reported an error when he tries execute a process that involves a new thread.
Here's the message he gets:
QObject: Cannot create children for a parent that is in a different thread.(Parent is Class1(0x9597868), parent's thread is QThread(0xd3bba8), current thread is Class1(0x9597868)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QSerialPort(0x4ae01a8), parent's thread is Class1(0x9597868), current thread is QThread(0xd3bba8)What makes me puzzled is that other users don't get this error.
The user who has the issue is using Windows 10, the same as everyone else is using.
What would explain this odd behavior?@Linhares said in Problem with QThread on a single computer:
What would explain this odd behavior?
The others simply don't look at the output. The output is correct and you need to fix it.
-
wrote on 3 Sept 2022, 14:55 last edited by
@Christian-Ehrlicher gee, you're right!
Now I've just realized I get the same message. However, contrarily to what happens to this user, the device we're aiming to connect works correctly on my computer. But now I know his problem needs to be solved in a difference process.
Thanks for your help!
1/3