Comments (1)
Finally I've managed to code a workaround for this bug.
Here I relate all the details because it may help when trying to isolate and
reproduce the bug effectively.
It only takes place the very first time that a search is done. So this means
that to reproduce it I had to restart
the system every time.
It also worked to unplug/plug in the bluetooth dongle that I use. But this
would eventually affect every usb
device connected to the computer, this could be caused by so many things (as
winxp itself, my motherboard,
the usb controller) but it actually happened in my system).
If the computer is left for a considerable amount of time (few hours) with no
bluetooth activity whatsoever, the
exception may also be obtained.
So basically, I tried the "loop" trick that alvmoriles suggests, but that
wouldn't avoid the bug. But I have found
something that will surely reproduce the bug. Which is to obtain the device
friendly name immediately after it
has been discovered.
For instance, this means that if you check for the device friendly name in the
"deviceDiscovered()" method of
the "discoveryListener" the program will always crash, no matter how many
times you have gone in the loop.
What my program used to do is to inform the user about the device friendly name
right after it had been
found, this would end up with the JVM exception every time that the application
was run for the first time.
Now I search for every device and I don't retrieve the friendly names at all.
Once the "inquiryCompleted" has
been fired and I start looking for services on each device, then I am able to
show the friendly names.
However, from time to time, these names will be returned as a empty strings.
Hope this helps. Anyway don't hesitate to ask if I haven't really made myself
clear, because I am probably one
of the most interested in seeing this bug fixed :)
If it can be helpful I could try all this stuff with the avetana stack, to see
if there's something inherent to
microsoft's driver, as the empty strings instead of actual names.
Good luck with it.
Jaume
Original comment by [email protected]
on 19 Aug 2006 at 9:23
from bluecove.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluecove.