[Monodroid] Error - Android.Net.ConnectivityManager ActiveNetworkInfo.IsConnectedOrConnecting
Orlando Silva
orlandolsilva at gmail.com
Tue Mar 1 05:33:40 EST 2011
Done - https://bugzilla.novell.com/show_bug.cgi?id=675871
<https://bugzilla.novell.com/show_bug.cgi?id=675871>Thanks for all your
help,
Orlando
On Mon, Feb 28, 2011 at 4:06 PM, Orlando Silva <orlandolsilva at gmail.com>wrote:
> Hello,
>
> Thanks for your quick answer, it was being done in an separate thread.
>
> I will report a bug then.
>
> My Best Regards,
> Orlando
>
>
> On Mon, Feb 28, 2011 at 3:13 PM, Jonathan Pryor <jpryor at novell.com> wrote:
>
>> On Feb 28, 2011, at 9:51 AM, Orlando Silva wrote:
>> > Sometimes when i try to read the property
>> ActiveNetworkInfo.IsConnectedOrConnecting (bool) of the object
>> Android.Net.ConnectivityManager, my app starts crashing..
>> > Im trying to check if my app has internet access, this error only occurs
>> sometimes, its very strange.
>> >
>> > Error Description:
>> > E/mono (13370): [0x471818:] EXCEPTION handling:
>> System.NullReferenceException: Object reference not set to an instance of an
>> object
>> > Warning error while reading the NetworkStatus. Internet is
>> ReachableViaWiFiNetwork.
>> > Description: System.NullReferenceException: Object reference not set to
>> an instance of an object
>> > at Android.Runtime.JNIEnv.CallBooleanMethod (IntPtr jobject, IntPtr
>> jmethod) [0x00000] in <filename unknown>:0
>> > at Android.Net.NetworkInfo.get_IsConnectedOrConnecting () [0x00000] in
>> <filename unknown>:0
>> > at Com.Cardmobili.Util.AndroidReachability.RemoteHostStatus () [0x00000]
>> in <filename unknown>:0
>>
>> This sounds like a runtime bug. Could you file a test case?
>>
>> Additionally, is your RemoteHostStatus() method being invoked from the
>> main thread or a separate thread?
>>
>> 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/mailman/private/monodroid/attachments/20110301/2a30668d/attachment.html
More information about the Monodroid
mailing list