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 - Léandre

Pages: [1]
1
C / Memory Leak CSFML 2.4
« on: November 08, 2017, 12:08:20 am »
Hi,

I wanted to know, for each project I've made using CSFML, I've never succeeded to completely free my memory.
Some of the time, using Valgrind, I'm at 140 000 bytes in still reachable, and for my latest projects, I'm around 40 000 not freed still reachable bytes.
It is linked to sfRenderWindow_create, the C++ function called for this : sf::Window::create, it's all the time a little bit more for each leak, for the firsts one, I don't have any clue for the rest ...
If you are interested to help me or have an answer, like "don't worry it's ok you can't do anything about it", here's the valgrind output in attachment.

Thanks in advance.
Léandre.

2
Window / Re: sf::RenderWindow responds to clicks, on background ...
« on: July 26, 2017, 02:25:07 pm »
Nevermind, I've found the LostFocus event

3
Window / sf::RenderWindow responds to clicks, on background ...
« on: July 26, 2017, 02:23:00 pm »
Hi,

I'm not really new with sfml, but was using CSFML, well now I'm learning C++ and doin pretty well,
So I'm creating a tiny game, where I need to handle mouse position, my main problem is that, even if I'm focused
in a Terminal of other software, the window still responds in background, so I can click on the sfml window, while being in my C++ code for example.
Hum, is there any way to avoid this ? Because I'm using isKeyPressed and isMousePressed so maybe witch the events ?

Best regards,
Léandre

Pages: [1]
anything