Displaced Posted February 19, 2011 Author Share Posted February 19, 2011 You should insert checks whenever you read a long or an int or any other type of number out of the buffer. I had the problem (i don't know why it disappeared..) that the server had some sort of funny mistake "Out of memory" (So 4 gb of memory aren't enough..).I checked why and the problem was a crazy high number after a "ReadLong" in the "ReadString" function. So i think no one will write a text over maybe 2000 characters?I hope you understand what i want to tell you.. Link to comment Share on other sites More sharing options...
Robin Posted February 19, 2011 Share Posted February 19, 2011 It's not filling up 4gB of memory. VB6 caps out at 256mB I believe.Out of Memory errors occur in the buffer when you're reading/writing them wrong. Link to comment Share on other sites More sharing options...
Displaced Posted February 19, 2011 Author Share Posted February 19, 2011 I know when it happens but if you send a wrong packet it will crash.. Link to comment Share on other sites More sharing options...
Robin Posted February 19, 2011 Share Posted February 19, 2011 Then don't send a wrong packet. Link to comment Share on other sites More sharing options...
Displaced Posted February 19, 2011 Author Share Posted February 19, 2011 Say that those ppl who want to bring down the server ;) Link to comment Share on other sites More sharing options...
Robin Posted February 19, 2011 Share Posted February 19, 2011 Turn on debug mode whilst the game is live. It'll log all errors and carry on running. I haven't added it to the server yet, however, simply the client. You can add it to the server yourself. Link to comment Share on other sites More sharing options...
Homicidal Monkey Posted February 20, 2011 Share Posted February 20, 2011 @Kamii:> I know when it happens but if you send a wrong packet it will crash..ip ban Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now