The map_view is null and Null Reference Exception occurs at this line:
map_view.Overlays.Add(location_overlay);


> From: j...@xamarin.com
> Date: Wed, 9 Nov 2011 23:07:53 -0500
> To: monodroid@lists.ximian.com
> Subject: Re: [mono-android] maps - I'm doing something wrong
> 
> On Nov 9, 2011, at 11:02 PM, Wally McClure wrote:
> > Thanks Jon.  Right now, I'm able to run this code properly on a device.  It 
> > is not running in the emulator, same error with a null in the map_view.  I 
> > do have location setup properly in the emulator since it seems to detect my 
> > location properly in other apps in the emulator.  Any other ideas?
> 
> Can you narrow down to when/where map_view is null, and/or when 
> map_view.Handle is IntPtr.Zero?
> 
> Thanks,
>  - Jon
> 
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
> 
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
                                          
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to