unexpected shutdown popup mac

I exported a program that works fine and uses exit() to exit when a key is pressed or the mouse is moved, however when I try and open it it gives me this popup "The last time you opened (program name), it unexpectedly quit while reopening windows do you want to try and reopen its windows again?" now for my purposes this makes it unusable is there a way to make this not show up or quit the program more smoothly? thx


  • Sounds a weird application that closes if the mouse is moved.

    Are you using multiple windows in your application?

    Are you using contributed libraries?

  • It is being used as a screen saver and no I am not using multiple windows and I don't recall using any libraries as I first made this program over a year ago.

Sign In or Register to comment.