Hello everyone,
I'm experiencing a weird crash while running a very simple SFML application. Here is the code below:
#include "stdafx.h"
#include <SFML\Graphics.hpp>
#include <SFML\OpenGL.hpp>
#include <SFML\System.hpp>
#include <SFML\Window.hpp>
int main(int argc, char *argv[])
{
sf::RenderWindow window;
window.create( sf::VideoMode( 800, 600 ), "SFML", sf::Style::Default );
window.setFramerateLimit( 60 );
sf::Event event;
while( window.isOpen() )
{
window.pollEvent( event );
}
return 0;
}
This crash occurs on both SFML 2.1 and the latest Unofficial Nightly Build (2013-09-24) running Windows 7 32bit. I've managed to get the crash while debugging, and here is the callstack:
dinput.dll!_CJoyCfg_New@12() Unknown
dinput.dll!_StringCbCopyW@12() Unknown
dinput.dll!_hresDupPtszPptsz@8() Unknown
dinput.dll!_CHid_Init@8() Unknown
dinput.dll!_CHid_New@16() Unknown
dinput.dll!_DIWdm_JoyHidMapping@16() Unknown
dinput.dll!_JoyReg_GetConfigInternal@16() Unknown
dinput.dll!_JoyReg_GetConfig@16() Unknown
dinput.dll!_CJoyCfg_GetConfig@16() Unknown
winmm.dll!_joyOpen@8() Unknown
winmm.dll!_joyGetPosEx@8() Unknown
sfml-window-d-2.dll!0f9c941d() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for sfml-window-d-2.dll]
sfml-window-d-2.dll!sf::Joystick::operator=() + 482 bytes Unknown
sfml-window-d-2.dll!sf::Window::initialize() + 5176 bytes Unknown
sfml-window-d-2.dll!sf::Window::initialize() + 4581 bytes Unknown
sfml-window-d-2.dll!sf::Window::pollEvent() + 40 bytes Unknown
ConsoleApplication2.exe!main(int argc, char * * argv) Line 44 C++
ConsoleApplication2.exe!__tmainCRTStartup() Line 536 C
ConsoleApplication2.exe!mainCRTStartup() Line 377 C
kernel32.dll!@BaseThreadInitThunk@12() Unknown
ntdll.dll!___RtlUserThreadStart@8() Unknown
ntdll.dll!__RtlUserThreadStart@8() Unknown
To reproduce the bug, I just run the application and let it sit for 5-30 minutes and then the crash will occur.
Any ideas?