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. Strange first chance exception in debug MSVC 2017
Forum Updated to NodeBB v4.3 + New Features

Strange first chance exception in debug MSVC 2017

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 918 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
    Flone
    wrote on last edited by Flone
    #1

    Hello!
    I'm using Qt Creator 4.8.2 open-source (Qt version 5.11.3) with MSVC 2017 compiler and getting a first chance exception when the application starts in debug mode. When I start the application in release mode it works fine.

    The inferior stopped because it triggered an exception.
    Stopped in thread 0 by: Exception at 0x7ffa1efde78a, code: 0xc0000008: , flags=0x0 (first chance).

    I configured Qt according to the answer from here but that does not help.

    I get that exception even if I create default Qt Widgets Application.

    KroMignonK 1 Reply Last reply
    0
    • F Flone

      Hello!
      I'm using Qt Creator 4.8.2 open-source (Qt version 5.11.3) with MSVC 2017 compiler and getting a first chance exception when the application starts in debug mode. When I start the application in release mode it works fine.

      The inferior stopped because it triggered an exception.
      Stopped in thread 0 by: Exception at 0x7ffa1efde78a, code: 0xc0000008: , flags=0x0 (first chance).

      I configured Qt according to the answer from here but that does not help.

      I get that exception even if I create default Qt Widgets Application.

      KroMignonK Offline
      KroMignonK Offline
      KroMignon
      wrote on last edited by
      #2

      @Flone hi Flone, check your debugger settings, should be something like this:
      0_1551965961079_583b0282-b82a-4e80-bf79-2460de05cd12-image.png

      It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

      F 1 Reply Last reply
      0
      • KroMignonK KroMignon

        @Flone hi Flone, check your debugger settings, should be something like this:
        0_1551965961079_583b0282-b82a-4e80-bf79-2460de05cd12-image.png

        F Offline
        F Offline
        Flone
        wrote on last edited by
        #3

        @KroMignon yep.
        0_1551966758137_6b88bf74-cf11-4bc4-9a6e-b9551d3af024-image.png

        KroMignonK 1 Reply Last reply
        0
        • F Flone

          @KroMignon yep.
          0_1551966758137_6b88bf74-cf11-4bc4-9a6e-b9551d3af024-image.png

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on last edited by
          #4

          @Flone You can try to check Ignore first chance access violations, but I don't known if it really helps.

          I've used Qt Creator 4.8.2 with Qt 5.12.0 and MSVC 2015 without troubles.
          Can't figure out why you have such troubles.

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          F 2 Replies Last reply
          2
          • KroMignonK KroMignon

            @Flone You can try to check Ignore first chance access violations, but I don't known if it really helps.

            I've used Qt Creator 4.8.2 with Qt 5.12.0 and MSVC 2015 without troubles.
            Can't figure out why you have such troubles.

            F Offline
            F Offline
            Flone
            wrote on last edited by
            #5

            @KroMignon hm, I will update Qt to 5.12.0 and see if it helps and then maybe change MSVC to 2015. Thanks for the info! I will write about the result later.

            1 Reply Last reply
            0
            • KroMignonK KroMignon

              @Flone You can try to check Ignore first chance access violations, but I don't known if it really helps.

              I've used Qt Creator 4.8.2 with Qt 5.12.0 and MSVC 2015 without troubles.
              Can't figure out why you have such troubles.

              F Offline
              F Offline
              Flone
              wrote on last edited by
              #6

              @KroMignon changed Qt to 5.12.0 and it helped!

              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