Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Bluetooth framework exceptions in sample projects Delphi 10.2 Update 2



Permlink Replies: 2 - Last Post: Apr 4, 2018 2:32 AM Last Post By: Robert Triest
Joachim Magera

Posts: 2
Registered: 2/3/17
Bluetooth framework exceptions in sample projects Delphi 10.2 Update 2
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 12, 2018 2:34 AM
Hello!

The bluetoothLE framework shipped with Delphi 10.2. Update 2 does not work under Windows 10 Home x64.
Loading and compiling the sample project "ExploreDevicesLE" works but it crashes when closing the software. It throws an EInvalidPointer exception.

The problem is easy to locate:

Create new VCL project
Click TBluetoothLE component on mainform.
In constructor of MainForm write BluetoothLE1.Enabled := true;
Compile and start application.
(BluetoothLE.SupportsGattClient returns TRUE)
Close application.
Error will be thrown showing many different memory leaks.

Listing Bluetooth Devices using BluetoothLE1.CurrentManager.StartDiscovery did not work either. The OnEndDiscoverDevices event does not fire.

Update: The hardware bluetooth adapter is enabled and works fine. I also tested the compiled exe on windows 8.1 with other problems.
The RTL250.bpl is of version 25.0.29039.2004

Edited by: Joachim Magera on Feb 12, 2018 4:40 AM

Edited by: Joachim Magera on Feb 12, 2018 5:24 AM
Matthieu Schouten

Posts: 1
Registered: 10/27/05
Re: Bluetooth framework exceptions in sample projects Delphi 10.2 Update 2
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 4, 2018 2:24 AM   in response to: Joachim Magera in response to: Joachim Magera
Hi,

I'm having the exact same issues: EInvalidPointer exception on close and OnEndDiscoveryDevices not firing. OnDiscoverLEDevice does fire multiple times per device though.

I'm coming from Delphi 10.0 where at first I was able to make a somewhat stable Bluetooth LE connection, but the latest big Win10 update broke it all and rendered Delphi 10.0 completely useless for Bluetooth LE. I specifically upgraded to 10.2.3 to have a usable Bluetooth again. But unfortunately it is still broken. A different kind of broken compared to 10.0, but still broken.

System specs:
Delphi 10.2.3 (building a Windows 32bit VCL app)
64bit Windows 10 Pro version 1709 Build 16299.309

Bluetooth connection works fine when using Microsofts Bluetooth LE Explorer app. Perfectly capable of reading/writing data without any errors. So nothing wrong with the setup.

Please, please fix this...
Robert Triest

Posts: 687
Registered: 3/24/05
Re: Bluetooth framework exceptions in sample projects Delphi 10.2 Update 2
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 4, 2018 2:32 AM   in response to: Matthieu Schouten in response to: Matthieu Schouten
Please, please fix this...
You have to add this issue on:

https://quality.embarcadero.com/
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02