Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. SIGSEGV - segmentation fault
QtWS25 Last Chance

SIGSEGV - segmentation fault

Scheduled Pinned Locked Moved Qt Creator and other tools
sigsegvsegmentation faunexpectedly fithe inferior stdebuggingserial portserialportexe crashed
6 Posts 2 Posters 2.4k Views
  • 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.
  • F Offline
    F Offline
    FabioSO
    wrote on 18 Jun 2015, 14:28 last edited by FabioSO
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 Jun 2015, 14:34 last edited by
      #2

      Hi and welcome to devnet,

      From the looks of that line nothing. Are you sure it's this one ? is serial valid ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        FabioSO
        wrote on 18 Jun 2015, 14:39 last edited by FabioSO
        #3

        There are no compiling problems, this is how I declared in header's sheet: "QSerialPort *serial;"
        And I've already used it in other application, I don't what I did wrong this time.
        Should I post the entire code?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 18 Jun 2015, 20:44 last edited by
          #4

          You won't have compiler error with the old signal slot syntax. You can use the new since you are using Qt 5.

          Are you initializing serial properly ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • F Offline
            F Offline
            FabioSO
            wrote on 25 Jun 2015, 12:13 last edited by
            #5

            Thanks for the help SGaist, it was missing "serial = new QSerialPort(this);" inside the constructor block.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 25 Jun 2015, 21:55 last edited by
              #6

              You're welcome !

              Since you have it working now, please update the thread title prepending [solved] so other forums users may know a solution has been found :)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              3/6

              18 Jun 2015, 14:39

              • Login

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