Hmm... Something very strange is happening.
I built it all again from today's svn trunk on windows XP (Code::Blocks, MinGW) and it works without error. The executable can be run on my Windows 7 machine without error as well.
But the executable built on Windows 7 has the error.
For some reason I can't build the current trunk on the Window 7 machine.
My suspicion is I have a dodgy configuration somewhere along the line. If I can pinpoint it further I'll update you all.
EDIT
Got it built on Windows 7 and it has an error on close, the minimal code is just:
int main()
{
// Create the main window
sf::Window App(sf::VideoMode(640, 480, 32), "SFML Window");
return EXIT_SUCCESS;
}
Window opens and closes immediately with an error. Copying the same executable to my Windows XP machine the window opens and immediately closes with NO error. Same program built on Windows XP has no error on either machine.
I'll keep investigating...