Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - tntexplosivesltd

Pages: 1 ... 3 4 [5] 6 7 ... 11
Window / sv::VideoMode memory leak
« on: January 28, 2011, 09:19:14 am »
Awesome. What actually caused the leak?

Window / sv::VideoMode memory leak
« on: January 28, 2011, 09:08:39 am »
Cool, that's good to hear :wink:
Will this be fixed in SFML 2?

Network / TCP sending random characters
« on: January 28, 2011, 05:16:27 am »
As in, the same receiving garbage characters problem. I wrote a function to loop through the buffer, stopping at the first '\0' character it saw.
Code: [Select]

int i = 0;
while (buf[i] != '\0")
  cout << buf[i];
cout << endl;

Something like that.

Window / sv::VideoMode memory leak
« on: January 28, 2011, 05:12:22 am »
I am using SFML 1.6 under Arch Linux, and I came across a small problem. When running my code through Valgrind, it says:
"28 bytes in block 1 definitely lost"
or something like that. Here is the offending line:
Code: [Select]

sf::VideoMode best_mode = sf::VideoMode::GetMode(0);

It has the same leak if I use a constructor list:
Code: [Select]

sf::VideoMode best_mode;
void Initialise() : best_mode(sf::VideoMode::GetMode(0))

Is this an error in SFML, or am I doing something wrong?

Network / TCP sending random characters
« on: January 28, 2011, 04:53:02 am »
I don't know what happens behind the scenes when re-initialising the array, but it definitely leaves "garbage" behind. I had the same problem.

General / Few questions
« on: January 27, 2011, 11:12:21 pm »
Ah, yes, forgot about the -lglu32 part, didn't realise the tutorial used gluPerspective (I tend to use glFrustum). It should be pointed out in the tutorial, but it is only needed for Windows. You don't need to link to them under Linux.

General / Re: Few questions
« on: January 27, 2011, 10:51:59 am »
Quote from: "ThunderManEX"

1. I couldn't run the source file here: http://www.sfml-dev.org/tutorials/1.6/window-opengl.php.
First error I get is: | undefined reference to `glClearDepth@8'| followed by 22 more errors that say the same thing regarding gl related code there. Is there any SFML library I need to link? (currently have system, window and graphics linked).

Yes, you need to link to OpenGL. Use -lopengl32.

Network / TCP sending random characters
« on: January 27, 2011, 10:47:27 am »
At the moment everything in the buffer is being pronted out, even after the null-terminator at the end of the desired string (the '\0' character)

Window / [SFML2] Window crashes when calling destructor (ATI)
« on: January 26, 2011, 10:46:06 pm »
What is the deal with this ATI bug? I've heard about it, but what actually is it?

SFML website / ['request'] Overall navigationbar
« on: January 26, 2011, 09:09:16 am »
Quote from: "Groogy"
Well you could simply use something like Wordpress or simply a CMS website.

Not such a good idea. Those types of sites all look the same and are horribly bloated. I like the fact that the SFML site is very quick to load. It especially makes a difference on slower internet connections.

Window / Screen Savers and Event::MouseMoved
« on: January 26, 2011, 07:21:03 am »
Can you show your complete code?

SFML projects / Atom Zombie Smasher
« on: January 25, 2011, 12:17:44 am »
That looks very cool. :D

Network / Simple Test Not Working (I'm a noob)
« on: January 25, 2011, 12:10:40 am »
Basically, your router is acting as a barrier between the external, big bad inernet, and the safe, nice internal network. Any communications from the internet come through the router, and the router allows only information from approved ports to pass through. The port your test isn't on the approved list. By "forwarding" this port on your router, you tell it to allow communications from that port.
Further reading:

Hope that helps. :D

Network / Problem with UDP Sockets
« on: January 24, 2011, 11:52:11 pm »
Sorry, can't help you with that. Never needed to use them before. :wink:

Network / Problem with UDP Sockets
« on: January 24, 2011, 11:38:47 pm »
You can do this using TCP sockets and a Socket Selector. It's all on the networking tutorial on the SFML site.

Pages: 1 ... 3 4 [5] 6 7 ... 11