Hi Mittchel, Yes, the problem is that the locationManager is getting garbage-collected at the end of your function because it is no longer in scope. Moving it outside of the function gives it a "global" scope, so it remains after the function finishes.
Jeff On Fri, Nov 18, 2011 at 8:18 AM, Mittchel <[email protected]> wrote: > Alright I fixed it.. the line: CLLocationManager locationManager = null; I > picked that line and placed it OUTSIDE the method and used: > > static CLLocationManager locationManager = null; this fixed it.. but I am > not quite sure why, anybody able to explain? > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Locationservices-problem-again-tp4083018p4083187.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
