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.


Topics - transient

Pages: [1]
1
Window / Window title / window creation, deletion
« on: August 21, 2009, 08:14:37 pm »
I have a few quick questions about windows:

I'm creating a window as such.
Code: [Select]

// Create the window settings
sf::WindowSettings settings;
settings.DepthBits = 32;
settings.StencilBits = 8;
settings.AntialiasingLevel = 2;

// Create the window
sf::Window* window = (new sf::Window(sf::VideoMode(dim.x, dim.y, 32), "abc", sf::Style::Close | sf::Style::Titlebar | sf::Style::Resize, settings));


Now, the title of the window ends up being something like this "LLLLabc" (a weird ascii L though.)

Also, when I call

Code: [Select]

delete window;


I get a memory error.

Any ideas why?  Thanks

Pages: [1]