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. [Debugger confusion] Debugger encountered an exception: Exception at Ox7ffd94b153ac, code: 0x8001010d:, flags-0x81 (first chance)
Forum Updated to NodeBB v4.3 + New Features

[Debugger confusion] Debugger encountered an exception: Exception at Ox7ffd94b153ac, code: 0x8001010d:, flags-0x81 (first chance)

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 1.1k 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.
  • A Offline
    A Offline
    AnthonyLight
    wrote on last edited by AnthonyLight
    #1

    Please help me solve the following confusion: I am using the QCanBus library, in order to detect the existence of CanDevice, I want to return a QCanDevice* type for use elsewhere. But the following error, please help me to solve this puzzle: Debugger encountered an exception: Exception at Ox7ffd94b153ac, code: 0x8001010d:, flags-0x81 (first chance)

    Now for no reason, here is my code snippet:

    QCanBusDevice* CanMainWindow::GetCanBusDevice() const
    {
    // return std::move(m_canDevice);
    return m_canDevice.get();   // Comment it out, there's still a problem
    // return std::make_unique<QCanBusDevice>(*m_canDevice);
    }
    

    [...Attached...]
    Display these prompts repeatedly:

    Exception at 0x7ffd94b153ac, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in UIAutomationCore! UiaReturnRawElementProvider
    
    Exception at 0x7ffd94b153ac, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in UIAutomationCore! UiaReturnRawElementProvider
    
    Exception at 0x7ffd94b153ac, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in UIAutomationCore! UiaReturnRawElementProvider
    
    Exception at 0x7ffd94b153ac, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in UIAutomationCore! UiaReturnRawElementProvider
    

    Thank you in advance. Thank u.

    9496b407-8a3b-4fa1-9657-11ac07c2021a-image.png

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      First chance exceptions are normally ok - these are exceptions which are catched inside the program. Is your device properly connected and can you access it with other tools? What exact Qt version do you use? Does Qt supports your device?

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

      A 1 Reply Last reply
      2
      • Christian EhrlicherC Christian Ehrlicher

        First chance exceptions are normally ok - these are exceptions which are catched inside the program. Is your device properly connected and can you access it with other tools? What exact Qt version do you use? Does Qt supports your device?

        A Offline
        A Offline
        AnthonyLight
        wrote on last edited by AnthonyLight
        #3

        @Christian-Ehrlicher said in [Debugger confusion] Debugger encountered an exception: Exception at Ox7ffd94b153ac, code: 0x8001010d:, flags-0x81 (first chance):

        First chance exceptions are normally ok - these are exceptions which are catched inside the program. Is your device properly connected and can you access it with other tools? What exact Qt version do you use? Does Qt supports your device?

        Thank you for your reply. My Qt version is 6.5, I can normally support my device, and the connection is normal, can also transfer data normally, comment out the function QCanBusDevice * CanMainWindow:: GetCanBusDevice const(), the program can run normally. But I still want to understand, why does this anomaly happen?

        JonBJ 1 Reply Last reply
        0
        • A AnthonyLight

          @Christian-Ehrlicher said in [Debugger confusion] Debugger encountered an exception: Exception at Ox7ffd94b153ac, code: 0x8001010d:, flags-0x81 (first chance):

          First chance exceptions are normally ok - these are exceptions which are catched inside the program. Is your device properly connected and can you access it with other tools? What exact Qt version do you use? Does Qt supports your device?

          Thank you for your reply. My Qt version is 6.5, I can normally support my device, and the connection is normal, can also transfer data normally, comment out the function QCanBusDevice * CanMainWindow:: GetCanBusDevice const(), the program can run normally. But I still want to understand, why does this anomaly happen?

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

          @AnthonyLight
          I believe they are an MSVC/VS invention. An first-chance without a second chance means it was handled in exception handling code.

          https://learn.microsoft.com/en-gb/archive/blogs/davidklinems/what-is-a-first-chance-exception

          First chance exception messages most often do not mean there is a problem in the code.

          https://stackoverflow.com/questions/22037933/what-is-a-first-chance-exception

          You don't have to look at these notifications, right-click the Output window and untick the "Exception messages" option.

          A 1 Reply Last reply
          1
          • JonBJ JonB

            @AnthonyLight
            I believe they are an MSVC/VS invention. An first-chance without a second chance means it was handled in exception handling code.

            https://learn.microsoft.com/en-gb/archive/blogs/davidklinems/what-is-a-first-chance-exception

            First chance exception messages most often do not mean there is a problem in the code.

            https://stackoverflow.com/questions/22037933/what-is-a-first-chance-exception

            You don't have to look at these notifications, right-click the Output window and untick the "Exception messages" option.

            A Offline
            A Offline
            AnthonyLight
            wrote on last edited by
            #5

            @JonB said in [Debugger confusion] Debugger encountered an exception: Exception at Ox7ffd94b153ac, code: 0x8001010d:, flags-0x81 (first chance):

            @AnthonyLight
            I believe they are an MSVC/VS invention. An first-chance without a second chance means it was handled in exception handling code.

            https://learn.microsoft.com/en-gb/archive/blogs/davidklinems/what-is-a-first-chance-exception

            First chance exception messages most often do not mean there is a problem in the code.

            https://stackoverflow.com/questions/22037933/what-is-a-first-chance-exception

            You don't have to look at these notifications, right-click the Output window and untick the "Exception messages" option.

            Thank you for your detailed and serious reply. I have learned a lot. I am a novice, not very good at C++ programming, and I am not familiar with Qt enough.

            1 Reply Last reply
            0
            • W Offline
              W Offline
              wylun
              wrote on last edited by
              #6

              So, can this warning be ignored?

              JonBJ 1 Reply Last reply
              0
              • W wylun

                So, can this warning be ignored?

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

                @wylun If it's a First Chance Exception then as I wrote two posts above.

                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