3
« on: November 01, 2010, 11:26:58 pm »
Hi there,
First of all, good job with the library! The design looks great!
I was wondering if you could avoid having memory allocations at "global startup" - before the main function is executed.
I'm talking about the
sf::Context& Dummy = sf::Context::GetGlobal();
in context.cpp
It shows as leaks on my memory leaks report - it reports before exiting the main function. I suppose the memory is set free when the destructor is called, but I prefer to be aware of the order in which objects are allocated. It's good practice, especially with memory allocators or allocations debug tracking.
Maybe a simple global function like InitSFML would be ok, even with the fully C++ design.
--------
Another suggestion is to add project configurations with runtime library linked as Multi-Thread/Multi-Thread Debug, not only Multi-Thread DLL/Multi-Thread Debug DLL. And add these as precompiled libs too.
Now, if the sfml dll is used within a project with such settings, it crushes - for me it does when the window pointer is deleted and the window title is messed up. Probably other things as well.
Thanks!
Alex