Martin J
Posts: 11
Joined: Wed Oct 26, 2005 12:02 pm
Location: Sweden

AutoDiscovery = False hangs

Wed Nov 02, 2005 3:40 pm


I turn on AutoDiscovery when my application starts. Whenever I want to communicate with a device I temporarily turn off AutoDiscovery (by setting AutoDiscovery = False). This works most of the time but sometimes it hangs the application. I now do some checks for DiscoveryPending before turning it off but that doesn't help.
I do my testing on an HP iPAQ hx2190 (Windows Mobile 5.0) with Widcomm stack (hw: 2.12, sw:

My code:

Code: Select all

    Dim iTries As Integer = 0
    While nwork.DiscoveryPending And (iTries < 10)
        iTries = iTries + 1
    End While
    If iTries >= 10 Then
        Catch ex As Exception
        End Try
    End If
    nwork.AutoDiscovery = False
Any ideas how to proceed? Can I do it some other way?

Best regards,
/Martin J

User avatar
Posts: 15353
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: AutoDiscovery = False hangs

Wed Nov 02, 2005 4:05 pm

We'll try to repeat this and fix it in a coming beta release. For now the only work around is to not use AutoDiscovery.


Franson Support

Return to “BlueTools”