Why is sometimes, though very rare, IsInRange causing System.NullReferenceException?
Application: MyApp.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception.
Exception Info:
System.NullReferenceException Stack:
at <Module>.wcl.wcl_int.CwclSDPParser.Parse(wcl.wcl_int.CwclSDPParser*, Byte*, UInt32)
at <Module>.wcl.wcl_int.CwclSDPParser.{ctor}(wcl.wcl_int.CwclSDPParser*, Byte*, UInt32)
at <Module>.wcl.wcl_int.CwclBluetoothDevice.EnumServicesMicrosoft(wcl.wcl_int.CwclBluetoothDevice*, wcl.wcl_int.CwclBluetoothServices*, _GUID*)
at <Module>.wcl.wcl_int.CwclBluetoothDevice.EnumServices(wcl.wcl_int.CwclBluetoothDevice*,
wcl.wcl_int.CwclBluetoothRadio*, wcl.wcl_int.CwclBluetoothServices*, _GUID*)
at <Module>.wcl.wcl_int.CwclBluetoothDevice.IsInRange(wcl.wcl_int.CwclBluetoothDevice*, wcl.wcl_int.CwclBluetoothRadio*, Boolean*)
at wcl.wclBluetoothDevice.IsInRange(wcl.wclBluetoothRadio, Boolean ByRef)
at MyApp.Server.DiscoveryService.wclBluetoothDiscovery_OnDiscoveryComplete(System.Object, wcl.wclBluetoothDiscoveryCompleteEventArgs)