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. Errors in DebugMode, but application is running (Bluetooth Low Energy)
Forum Updated to NodeBB v4.3 + New Features

Errors in DebugMode, but application is running (Bluetooth Low Energy)

Scheduled Pinned Locked Moved Unsolved General and Desktop
bluetoothqfile
5 Posts 2 Posters 1.5k 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.
  • T Offline
    T Offline
    TUStudi
    wrote on last edited by
    #1

    Hi,

    I have a GUI Application which connects to a Bluetooth Low Energy Device and saves the data which come each second in a file.
    When I run my application in DebugMode, I got the following entries in my Application Output (not Issues), but the application is still working:

    onecoreuap\shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(288)\thumbcache.dll!00007FF85C678591: (caller: 00007FF85C67845F) ReturnHr(55) tid(2a14) 80004003 Invalid pointer
    onecoreuap\shell\ext\thumbnailcache\lib\thumbcacheapi.cpp(162)\thumbcache.dll!00007FF85C6633A1: (caller: 00007FF888A365DA) ReturnHr(56) tid(2a14) 80004003 Invalid pointer
    onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF83511C645: (caller: 00007FF83511C106) ReturnHr(11) tid(c20) 80070490 Element not found.
    onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1409)\Windows.Devices.Bluetooth.dll!00007FF83512E278: (caller: 00007FF835138CC1) LogHr(6) tid(c20) 80070490 Element not found.
    onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1409)\Windows.Devices.Bluetooth.dll!00007FF83512E278: (caller: 00007FF835138CC1) LogHr(7) tid(24a0) 80070490 Element not found.
    onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF83511C645: (caller: 00007FF83511C106) ReturnHr(15) tid(33f8) 80070490 Element not found.
    onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1409)\Windows.Devices.Bluetooth.dll!00007FF83512E278: (caller: 00007FF835138CC1) LogHr(8) tid(33f8) 80070490 Element not found.
    

    For the first Error I have read that it might have to do with the file read. Here is my code:

    void File::wirteDataToFile(QString directory, QString fileName, sensorValue)
    {
        if (firstLineOfData){
            file.setFileName(directory.replace('\\', '/') + "/" + fileName + ".txt");
            file.open(QIODevice::Append);
        }
    
        if(!file.isOpen()){
            qDebug() <<"- Error, unable to open" << file.fileName() << "for output because " << file.error();
            return ;
        }
    
        /* Point a QTextStream object at the file */
        QTextStream outStream(&file);
    
    
        outStream << sensorValue << "\n";
        file.flush();
    
        firstLineOfData = false;
    }
    

    Regarding the seond Error (with Bluetooth):
    So, according to this Thread I should create a Qt Plugin and run QtBluetooth in that.
    If I don't do that, can it negatively affect my application in the long run? My application is running, it does not crash. Or do I get problems when I later create an .exe file? I would like to run the application on Linux and Windows later.

    Currently I am using Windows 10 with the newest Qt and Creator Versions and MSVC2019 64bit.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TUStudi
      wrote on last edited by
      #2

      Hmm, Nobody?

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        It seems to complain about WinRT dlls and some symbols is not found.
        Is this winRT app ?

        If app runs and works as intended this might not be serious.

        T 1 Reply Last reply
        0
        • mrjjM mrjj

          Hi
          It seems to complain about WinRT dlls and some symbols is not found.
          Is this winRT app ?

          If app runs and works as intended this might not be serious.

          T Offline
          T Offline
          TUStudi
          wrote on last edited by
          #4

          @mrjj Sorry, but how can i found out if this is a winRT app? ;D

          mrjjM 1 Reply Last reply
          0
          • T TUStudi

            @mrjj Sorry, but how can i found out if this is a winRT app? ;D

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @TUStudi
            Ehh. :)
            well you would on purpose made it so.
            With the compiler and Qt version you choose to compile app with.
            THe Qt used would be called UWP

            ![alt text](047f13cc-ab5d-4a45-9a25-a462988cafc2-image.png image url)

            So I would guess on its Not a "Metro" app.

            But this can also just be something about windows version/patching and not related to you app as all.

            https://docs.microsoft.com/en-us/answers/questions/3166/what-is-the-meaning-of-this-output-element-not-fou.html

            1 Reply Last reply
            1

            • Login

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