Page 1 of 1

AutoDiscovery = False hangs

Posted: Wed Nov 02, 2005 3:40 pm
by Martin J

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

RE: AutoDiscovery = False hangs

Posted: Wed Nov 02, 2005 4:05 pm
by johan
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