VS2015 just 'hangs' on every SDL2 project

leBreaux wrote:

Hello everyone, this is my first post on the SDL forums.
I’m having a serious issue with my development environment: Everytime I want to run or debug my compilation, stuff starts ‘hanging’, eg not responding.
For example: if I start from Visual Studio 2015, the IDE just stops responding. According to the task manager my code is running, but has no window and I’m rendered unable to stop my code. I have to force quit VS2015 and after that my code goes rogue and is taken over by “SYSTEM”, so I cannot force quit it and remove the .exe manually.
The same goes for explorer: if I start the exe from windows, the active window wil freeze and show the same behaviour as VS2015.

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.

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:

leBreaux wrote:

Hello everyone, this is my first post on the SDL forums.
I’m having a serious issue with my development environment: Everytime I
want to run or debug my compilation, stuff starts ‘hanging’, eg not
responding.
For example: if I start from Visual Studio 2015, the IDE just stops
responding. According to the task manager my code is running, but has no
window and I’m rendered unable to stop my code. I have to force quit VS2015
and after that my code goes rogue and is taken over by “SYSTEM”, so I
cannot force quit it and remove the .exe manually.
The same goes for explorer: if I start the exe from windows, the active
window wil freeze and show the same behaviour as VS2015.

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.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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 <alex.barry at gmail.com> wrote:

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:

leBreaux wrote:

Hello everyone, this is my first post on the SDL forums.
I’m having a serious issue with my development environment: Everytime I
want to run or debug my compilation, stuff starts ‘hanging’, eg not
responding.
For example: if I start from Visual Studio 2015, the IDE just stops
responding. According to the task manager my code is running, but has no
window and I’m rendered unable to stop my code. I have to force quit VS2015
and after that my code goes rogue and is taken over by “SYSTEM”, so I
cannot force quit it and remove the .exe manually.
The same goes for explorer: if I start the exe from windows, the active
window wil freeze and show the same behaviour as VS2015.

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.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org