In my application on WP8 I work with all of the sensors. Accelerometer, Compass (from Windows.Devices.Sensors and from Microsoft.Devices.Sensors too) and Inclinometer. Everything works fine until I push the Windows button and after that the Back button. I get a full black screen with a "Resuming..." message and nothing happens. Once I got an exception (from 5 fauilure only once):
{System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at Microsoft.Devices.Sensors.SensorBase`1.PauseSensor()
at Microsoft.Devices.Sensors.SensorBase`1.<>c__DisplayClass7.<.ctor>b__4(Object sender, NotificationCallbackEventArgs args)
at Microsoft.Devices.Sensors.SensorCallback.MS.Internal.Interop.INotificationCallback.Pausing(XPauseType pauseType)
at MS.Internal.Interop.NotificationService.NotificationPausing(XPauseType pauseType)
at MS.Internal.FrameworkCallbacks.NotificationPausing(UInt32 pauseType)}
Did someone meet with this exception?
Or is there a best practice working correctly with sensors during the wp8 application lifecycle?
Thanks