Sockets and WPF
I have a multiplayer trivia server written in C++, in some part of the code I use a condition variable after a client has asked a specific request in order to give an answer when all of the users have finished answering. My client is written in C# and whenever a client ask the request I mentioned earlier their app crushes. Here is the client code to send a request and get a response in the following protocol (1byte = request code, 4bytes = buffer length, Xbytes = buffer with data):
3 Replies
do you have any other info?
like stack traces?
no, since it only occurs when i use multiple users so it's very hard to get to that information
a bunch of
try-catch
es would help, also some logging
like $"i got a message {this long} from {this guy}" and such