Errors in DebugMode, but application is running (Bluetooth Low Energy)
-
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.
-
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.
-
@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]( 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.