Probable bug in Windows Phone 8

I found what appears to be a minor bug in some Windows Phone 8 devices.

It showed up in my Field Ballistics program. I have code that looks like this:

// Can we focus only on the target?
if (this.cam.IsFocusAtPointSupported)
{
    this.cam.FocusAtPoint(0.5, 0.5);
}
else
{
    this.cam.Focus();
}

On someone’s phone this raised a “System.InvalidOperationException” on the call to “FocusAtPoint”.

What appears to have happened is that the phone reports IsFocusAtPointSupported as “true” but doesn’t actually support it. It’s not all that big of deal but it does mean I’ll be releasing an update a little sooner than I had planned.

Share