1
General discussions / Re: SFML Network with SDL2
« on: June 20, 2014, 11:49:42 am »
I have a wierd error i use Visual C++
Error message: https://imgur.com/6dSINtG
Minimal code (Source code): http://pastebin.com/mtKJewx7
I get the error then i recive large strings like ~150 characters or more!
The problem can be solved by adding a text.reserve(1) so if the error is not my fault a text.reserve(1) should be added to the recive(Packet& packet) function!
Please check the source!
I tested it on Linux and it works properly it's a Visual C++ problem!
Error message: https://imgur.com/6dSINtG
Minimal code (Source code): http://pastebin.com/mtKJewx7
I get the error then i recive large strings like ~150 characters or more!
The problem can be solved by adding a text.reserve(1) so if the error is not my fault a text.reserve(1) should be added to the recive(Packet& packet) function!
Please check the source!
I tested it on Linux and it works properly it's a Visual C++ problem!