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 - transient

Pages: [1]
1
Window / Window title / window creation, deletion
« on: August 22, 2009, 07:08:20 am »
Linking to release libraries while compiling in debug mode isn't always the smartest idea...

Thanks.

(Also, I was not using the window after I deleted it, but that is of minimal consequence now.  Also, I thought I gave just enough code to reproduce the issue.  To each their own.)

2
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]