Tagged: Android NullReferenceException
- This topic has 9 replies, 4 voices, and was last updated 10 years, 9 months ago by
Anonymous.
-
AuthorPosts
-
March 21, 2014 at 16:26 #2388
Anonymous
InactiveHi, one more Android issue. When I try to create a TCP Connection that can’t be established, because nobody is listening on the remote address, an exception occurs, that can not be caught and crashes the whole application.
System.NullReferenceException: Object reference not set to an instance of an object
in System.Net.Sockets.TcpClient.EndConnect C# in NetworkCommsDotNet.Connections.TCP.TCPConnection.ConnectSocket at c:\Users\Karnifexx\Documents\Visual Studio 2010\Projects\networkcomms.net\NetworkCommsDotNet\Connection\TCP\TCPConnection.cs:218 C# in NetworkCommsDotNet.Connections.TCP.TCPConnection.EstablishConnectionSpecific at c:\Users\Karnifexx\Documents\Visual Studio 2010\Projects\networkcomms.net\NetworkCommsDotNet\Connection\TCP\TCPConnection.cs:108 C# in NetworkCommsDotNet.Connections.Connection.EstablishConnection at c:\Users\Karnifexx\Documents\Visual Studio 2010\Projects\networkcomms.net\NetworkCommsDotNet\Connection\ConnectionCreate.cs:140 C# in NetworkCommsDotNet.Connections.TCP.TCPConnection.GetConnection at c:\Users\Karnifexx\Documents\Visual Studio 2010\Projects\networkcomms.net\NetworkCommsDotNet\Connection\TCP\TCPConnectionStatic.cs:171 C# in NetworkCommsDotNet.Connections.TCP.TCPConnection.GetConnection at c:\Users\Karnifexx\Documents\Visual Studio 2010\Projects\networkcomms.net\NetworkCommsDotNet\Connection\TCP\TCPConnectionStatic.cs:55 C#March 25, 2014 at 01:41 #2392Anonymous
InactiveThis appears to be a similar issue to this one – https://bitbucket.org/MarcF/networkcomms.net/issue/39/xamarin-android-235.
Some questions for you:
1. What version of android are you using when you observe this problem?
2. Are you able to test on a different version of android to see if the problem persists?Kind regards,
MarcMarch 27, 2014 at 09:50 #2413Anonymous
InactiveHi Marc,
I tested it on Android 4.1.2 and 4.2.2 with physical devices, but I could also reproduce it for example on Android 2.3.3 with the emulator. Didn’t test it on further configurations.
March 27, 2014 at 12:18 #2414Anonymous
InactiveOk, this appears to be a step forward from the original bug report. We will investigate this further.
Regards,
MarcMarch 27, 2014 at 14:41 #2416Anonymous
InactiveHave managed to fix this bug as well. It will be in the update I email you in next few hours.
Marc
March 29, 2014 at 19:55 #2432Anonymous
InactiveHi Marc, thank you very much, it solved the Problem!
April 1, 2014 at 23:16 #2450Anonymous
InactiveHi Marc,
Can I have the fixed version? Thanks
April 2, 2014 at 08:41 #2451Anonymous
InactiveHave you emailed you jack. Please let us know if you have any issues,
Regards,
MarcApril 2, 2014 at 18:05 #2455Anonymous
InactiveThank, I will.
Jack
February 18, 2015 at 07:44 #3712Anonymous
InactiveNullReferenceException indicates that you are trying to access member fields, or function types, on an object reference that points to null. That means the reference to an Object which is not initialized.. More about….How do I fix NullReferenceException
Patter
-
AuthorPosts
- You must be logged in to reply to this topic.
