Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Program not stopping after return EXIT_SUCCESS  (Read 5860 times)

0 Members and 1 Guest are viewing this topic.

wintertime

  • Sr. Member
  • ****
  • Posts: 255
    • View Profile
Re: Program not stopping after return EXIT_SUCCESS
« Reply #15 on: January 04, 2014, 01:25:55 pm »
1) Why is checking for event.type needed if checking for a key.code works?
Apparently it did not work correctly, because it is undefined behaviour to access a union member when it is not the one which got written last (and there are many types of events using different union members).

wojo1086

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
Re: Program not stopping after return EXIT_SUCCESS
« Reply #16 on: January 05, 2014, 06:50:09 pm »
I would like to thank everyone for taking the time to help me with this issue!

I managed to get it to work correctly! I just started a new project and reconfigured everything again! I'm not sure how my configurations got screwed up or what configurations got screwed up. I also learned a lot through this whole ordeal!

Thank you again everybody!