VS2015 just 'hangs' on every SDL2 project |
leBreaux
|
EDIT:I forgot to mention that my project does build. It just won't run.
|
|||||||||||
|
Re: VS2015 just 'hangs' on every SDL2 project |
DLudwig
|
This is strange. Have you tried stepping into your program with a debugger, seeing if it hits the main() function at all, or which SDL function it hangs in? -- David L. |
|||||||||||||
|
VS2015 just 'hangs' on every SDL2 project |
MrOzBarry
|
Although this may be overly simplistic - are you running your app in a loop but not running the SDL event loop (ie SDL_PollEvent())?
On Sun, Nov 29, 2015 at 9:44 PM, DLudwig wrote:
|
|||||||||||||
|
VS2015 just 'hangs' on every SDL2 project |
Owen Alanzo Hogarth
Guest
|
you have to poll events to allow some way to exit the program.
https://wiki.libsdl.org/SDL_QuitEvent At least implement the code in that link above so that your machine doesn't lock up, you basically created an infinite loop that's causing your computer not to respond. On Mon, Nov 30, 2015 at 10:49 AM, Alex Barry wrote:
|
|||||||||||||||
|
leBreaux
|
Thanks for replying people, I'm at school now with only my laptop.
I'll try running the sanity test with an SDL_loop and also step debugging within VS2015 when I get home. Furthermore I was going to try SDL with MinGW and Eclipse Mars. Eclipse and Windows show exactly the same behaviour with only a basic "Hello World!", not even invoking anything related to SDL. I'm starting to fear this has something to do with my Windows setup rather than SDL... |
|||||||||||
|
leBreaux
|
All right, Step debugging and using SDL events give the same behavior. I will now reinstall Windows, the single most fun thing to do in this whole wide world.
|
|||||||||||
|