Thread running multiple times after every iteration
Solved
General and Desktop
-
Hello people,
I have tried implementing Serialport in thread. Functionalities like Read and Write are working perfectly. Now, I'm facing an issue like, each thread is running multiple times for every call (iteration).
For example: If I trigger a button first time, the thread runs single time and for the next iteration, the thread runs 3 times and for the 3rd iteration it runs 5 times and so on. Which results in app not responding problem (Due to Heavyload)
Is there any way to solve this problem?
Thanks in advance : )
-
Hi
Make sure you don't create a new thread every time you press the button.
Also if you have any connect statements then make sure to just run them once as they will be connected more than one time if you ask for it.