Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Thread running multiple times after every iteration
Forum Updated to NodeBB v4.3 + New Features

Thread running multiple times after every iteration

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 115 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Dharani PrasadD Offline
    Dharani PrasadD Offline
    Dharani Prasad
    wrote on last edited by
    #1

    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 : )

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      4

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved