- fix boundary destroy
- change default satellite interval
Change-Id: Ibc0e692d95f83b03a2696c26d5e7ca01d2cd2668
Signed-off-by: kj7.sung <kj7.sung@samsung.com>
/// </summary>
public class GpsSatellite
{
/// </summary>
public class GpsSatellite
{
- private int _interval = 120;
+ private int _interval = 1;
private Locator _locator;
private EventHandler<SatelliteStatusChangedEventArgs> _satelliteStatusChanged;
private IntPtr _handle = IntPtr.Zero;
private Locator _locator;
private EventHandler<SatelliteStatusChangedEventArgs> _satelliteStatusChanged;
private IntPtr _handle = IntPtr.Zero;
- Log.Info(Globals.LogTag, "SatelliteStatusUpdated remoove called");
+ Log.Info(Globals.LogTag, "SatelliteStatusUpdated Remove called");
_satelliteStatusChanged -= value;
if (_satelliteStatusChanged == null)
{
_satelliteStatusChanged -= value;
if (_satelliteStatusChanged == null)
{
Log.Info(Globals.LogTag, "SetSatelliteStatusChangeCallback");
GCHandle handle = GCHandle.Alloc(this);
int ret = Interop.GpsSatellite.SetSatelliteStatusChangedCallback(_handle, SatelliteStatusChangedCallback, _interval, GCHandle.ToIntPtr(handle));
Log.Info(Globals.LogTag, "SetSatelliteStatusChangeCallback");
GCHandle handle = GCHandle.Alloc(this);
int ret = Interop.GpsSatellite.SetSatelliteStatusChangedCallback(_handle, SatelliteStatusChangedCallback, _interval, GCHandle.ToIntPtr(handle));
+ /* int ret = Interop.GpsSatellite.SetSatelliteStatusChangedCallback(_handle, SatelliteStatusChangedCallback, _interval, IntPtr.Zero); */
if (((LocationError)ret != LocationError.None))
{
Log.Error(Globals.LogTag, "Error in setting satellite status changed callback," + (LocationError)ret);
if (((LocationError)ret != LocationError.None))
{
Log.Error(Globals.LogTag, "Error in setting satellite status changed callback," + (LocationError)ret);
+ if (disposing)
+ DestroyHandle();
+
_disposed = true;
}
private void DestroyHandle()
{
_disposed = true;
}
private void DestroyHandle()
{
- Log.Info(Globals.LogTag, "DestroyHandle");
+ Log.Info(Globals.LogTag, "DestroyBoundaryHandle");
int ret = Interop.LocationBoundary.DestroyBoundary(handle);
if (((LocationError)ret != LocationError.None))
{
int ret = Interop.LocationBoundary.DestroyBoundary(handle);
if (((LocationError)ret != LocationError.None))
{