I dont know how to explain my problem, but here it is:
I have a client/server communication going on, and on client connect, it sents "NM" + Username. The server pickets up that 'packet' and adds the Username to the hashtable storing all the clients.
GetClientNum() Gets a free number in the hashtable.PHP Code:frmLobby.Clients.Add(frmLobby.Lobby.GetClientNum(), Data.Substring(2));
The data added to the hashtable is Data.Substring(2).
It works for the server, but when the server sends that information to the client, ("NM" + UserName) (i have a loop so each user stored in the hastable is send), the client side gives me an errorThe code works for the server but not the Client, and i dont see what the problem could be. I have been trying to figure this out for a couple days already and its starting to make me mad.Quote:
Object reference not set to an instance of an object.

