chirag
Posts: 8
Joined: Wed Jul 16, 2008 10:03 am
Location: India

Application Exits without error

Wed Sep 17, 2008 7:17 pm

I have a licence of bluetools.

I have developed an application using .net compact framework which makes device discovery every 10 seconds.

It does not sends any files to devices. It only discovers devices.

My problem is that my application ends without an exception at any time during execution.

My code is as follows:

Private Sub searchDevice()

Try

tmrsend.Enabled = False

Dim devices() As Device

devices = singleNetwork.DiscoverDevices

Application.DoEvents()

tmrsend.Enabled = True

End If

Catch ex As Exception

MsgBox(ex.ToString)

End Try

End Sub


I am using HTC Pocket PC

OS: CE 5.2.1622 (Build 18128.0.4.4)


Please reply

Thank you.

chirag
Cosmic Information & Technoly Limited.

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Application Exits without error

Wed Sep 17, 2008 7:43 pm

Are you using the latest version of BlueTools?
A similar bug was fixed in the latest release.

Also, a better solution than using timers is using AutoDiscovery.

Regards,
Jonas

Return to “BlueTools”