[mono-android] maps - I'm doing something wrong
Wally McClure
theevilprogrammer at hotmail.com
Wed Nov 9 23:38:56 EST 2011
The map_view is null and Null Reference Exception occurs at this line:
map_view.Overlays.Add(location_overlay);
> From: jonp at xamarin.com
> Date: Wed, 9 Nov 2011 23:07:53 -0500
> To: monodroid at 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 at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111109/c4351f4f/attachment.html
More information about the Monodroid
mailing list