I have been online to see if i can have an example of server client chat to build a new multiplayer platform with chat every thing its work connect to the server ok, connect client to server ok but then wen i try to send the menssage to server nothing happen
and its come a error i can not figure out what change on the code because before to me to start the implementation its worked , But now its not work any more. I Have try to debug but i can not figure out what happen on my code
this is the exception
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at GenesisChatClient.frmClient.m_UDP_OnConnectionStateChanged(Object o,
ConnectionStateChangeEventArgs e) in c:\Users\Monchique
Discovery\Desktop\New folder\Genesis\GenesisChatClient\frmClient.cs:line 1299
at GenesisCore.GenesisUDP.ConnectionStateChanged(Connection cn, Boolean
active, String reason) in c:\Users\Monchique Discovery\Desktop\New
folder\Genesis\Core\GenesisUDP.cs:line 998
and this is my code
his is my code i will need to attach my code because it s to big to put here its limited to 60000 characters and the code have all much 80000
https://meocloud.pt/link/16c97250-ed45-4c36-b429-6d6180bb9b11/mycode.txt/