I'm finally trying the networking package again, but I'm having another problem, which is probably another silly mistake.
I'm using SFML 1.5 (dynamically linked) (going to upgrade soon) on Windows XP with Code::Blocks.
When I open task manager and go under processes, the far right column is Mem Usage, and processes usually have something like 4,484 K. This number goes up by around 10,000 (for the application I'm trying to make) every half-a-second-ish. I've been playing around with commenting stuff, and I found the problem (I think).
I make a pointer to a socket, and it points to one made with new. At first I thought it happened because I didn't delete it, but when all I had was new and delete, it worked fine.
Earlier, it was only going up when I used SetBlocking to false, but now it does it if I use SetBlocking at all...
Don't bother asking for a minimal example, I already made one!
#include <SFML/Network.hpp>
using namespace sf;
int main()
{
bool isTesting = true;
while ( isTesting )
{
sf::SocketTCP *testSocket = new sf::SocketTCP;
testSocket->SetBlocking( true );
delete testSocket;
}
return 0;
}
For once, I would be happy if it was a silly mistake.
Unrelated note: I just recently noticed that the tutorial for setting SFML up said that if I use it dynamically linked I have to define SFML_DYNAMIC in the project settings... I've never done that before! :lol: When I add it in, it works just the same.