The values were wrong in debugger and in Trace. What's more I also got corruption on other local "stack" variables - e.g. if I copied the values to a locally new'ed class, then that class also had issues.
This problem persisted for about 3 hours - I tried clean builds and phone and PC reboots - nothing helped. However, by taking a lunch break, the problem has now cleared and everything works fine - not sure if that's good or bad news :) Will keep an eye out for repetition! Stuart On 6 February 2012 15:29, Jonathan Pobst <mon...@jpobst.com> wrote: > Is this just in the debugger? > > If you use something like Console.WriteLine are the values correct? > > Jonathan > > > On 2/6/2012 5:42 AM, Stuart Lodge wrote: > >> I'm looking at some Location traces right now where the >> Andtroid.Locations.Location object has good mLatitude and mLongitude >> private values, but has seemingly garbage public Latitude and Longitude >> property values >> >> For example. the debug trace for the object is: >> >> {Location[mProvider=network,**mTime=1328528220606,mLatitude=** >> 51.4326621,mLongitude=-0.**3436901,mHasAltitude=false,** >> mAltitude=0.0,mHasSpeed=false,**mSpeed=0.0,mHasBearing=false,** >> mBearing=0.0,mHasAccuracy=**true,mAccuracy=52.0,mExtras=** >> Bundle[mParcelledData.**dataSize=148]]} >> >> >> ...but the debug evaluation of properties yields: >> >> base: {Java.Lang.Object} >> Accuracy: 0 >> Altitude: 1.58234427515848E-314 >> Bearing: 0 >> Extras: {Android.OS.Bundle} >> HasAccuracy: true >> HasAltitude: false >> HasBearing: false >> HasSpeed: false >> Latitude: 1.58234363880193E-314 >> Longitude: 1.58234354789385E-314 >> Provider: "network" >> Speed: 0 >> Time: 1328528220606 >> >> >> Is there something I'm doing wrong to get the result? Is it something to >> do with the provider being network rather than GPS? >> >> Stuart >> >> >> ______________________________**_________________ >> Monodroid mailing list >> Monodroid@lists.ximian.com >> >> UNSUBSCRIBE INFORMATION: >> http://lists.ximian.com/**mailman/listinfo/monodroid<http://lists.ximian.com/mailman/listinfo/monodroid> >> > > >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid