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. How to prevent application crash
Forum Updated to NodeBB v4.3 + New Features

How to prevent application crash

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 5 Posters 467 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.
  • SabracS Offline
    SabracS Offline
    Sabrac
    wrote on last edited by
    #1

    Basically, this must be safe coding.
    But we can't cover all the case from user,
    So are there any solution to prevent application crash (reason make app crash maybe something like not check pointer is null or other unexpected exception)
    For any application working with data, i have modify a lot of thing and it crash before i save my working file, its terrible.

    Christian EhrlicherC W 2 Replies Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      try to always use shared and unique pointers when possible and they can help some. Also run debugger tool through your apps regularly. C++ can surprise you sometimes if you do not code carefully.

      I do not think crash is a big deal anymore with all tools available. It is relatively easier to fix crashes nowadays.

      1 Reply Last reply
      0
      • SabracS Sabrac

        Basically, this must be safe coding.
        But we can't cover all the case from user,
        So are there any solution to prevent application crash (reason make app crash maybe something like not check pointer is null or other unexpected exception)
        For any application working with data, i have modify a lot of thing and it crash before i save my working file, its terrible.

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Sabrac said in How to prevent application crash:

        So are there any solution to prevent application crash

        Build your app so it does not crash in the first place. This is what a software engineer is doing

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1
        • Kent-DorfmanK Offline
          Kent-DorfmanK Offline
          Kent-Dorfman
          wrote on last edited by
          #4

          @Sabrac said in How to prevent application crash:

          So are there any solution to prevent application crash

          MISRA
          AUTOSAR
          coding standards for safety critical systems.

          If you meet the AI on the road, kill it.

          1 Reply Last reply
          0
          • SabracS Sabrac

            Basically, this must be safe coding.
            But we can't cover all the case from user,
            So are there any solution to prevent application crash (reason make app crash maybe something like not check pointer is null or other unexpected exception)
            For any application working with data, i have modify a lot of thing and it crash before i save my working file, its terrible.

            W Offline
            W Offline
            wrosecrans
            wrote on last edited by
            #5

            @Sabrac

            You fix the bugs that lead to crashes. There's no magic. If there was, you would have heard about it already.

            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