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. QT C++ application is crashing at end of a method "}"
Forum Updated to NodeBB v4.3 + New Features

QT C++ application is crashing at end of a method "}"

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 6 Posters 442 Views 3 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.
  • M Offline
    M Offline
    mp185388
    wrote on last edited by
    #1

    Hi All,
    I have a QT C++ application in which I am seeing crash at the end of a method at closing brace "}". Any suggestion or steps to find would be of great help.

    thanks,
    mp185388

    Sebastiano ZamberlanS J.HilkJ Pl45m4P JonBJ 4 Replies Last reply
    0
    • M mp185388

      Hi All,
      I have a QT C++ application in which I am seeing crash at the end of a method at closing brace "}". Any suggestion or steps to find would be of great help.

      thanks,
      mp185388

      Sebastiano ZamberlanS Offline
      Sebastiano ZamberlanS Offline
      Sebastiano Zamberlan
      wrote on last edited by
      #2

      @mp185388 What kind of crash? (Does output report anything to you?)
      Can you put an example of your code?

      1 Reply Last reply
      0
      • M mp185388

        Hi All,
        I have a QT C++ application in which I am seeing crash at the end of a method at closing brace "}". Any suggestion or steps to find would be of great help.

        thanks,
        mp185388

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @mp185388 did you forget to return something on a non void type function ?


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        0
        • M mp185388

          Hi All,
          I have a QT C++ application in which I am seeing crash at the end of a method at closing brace "}". Any suggestion or steps to find would be of great help.

          thanks,
          mp185388

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @mp185388 said in QT C++ application is crashing at end of a method "}":

          I have a QT C++ application in which I am seeing crash at the end of a method at closing brace "}". Any suggestion or steps to find would be of great help.

          That's almost no information.
          Please show some code where it crashes or what you are doing exactly.


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          0
          • M mp185388

            Hi All,
            I have a QT C++ application in which I am seeing crash at the end of a method at closing brace "}". Any suggestion or steps to find would be of great help.

            thanks,
            mp185388

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @mp185388
            It will likely be during destructor of local object of some kind. Or maybe you write to somewhere bad like the stack.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SimonSchroeder
              wrote on last edited by
              #6

              If you are on Windows, my experience is that the debugger most of the time points to the line after the current one. Which might mean that it actually crashed in the line before. But destructors is also a good guess.

              1 Reply Last reply
              0

              • Login

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