I'm working on a game called Knytt, which crashes randomly. I finally managed to figure out that it's probably the sub-app which plays atmosphere sounds, that cause the application to crash.
Now I've created an example. I simplfied the atmospheres engine and made it into it's own application. Instead of being controlled by the location of the player, you controll it with the arrow keys.
Download it from here
If you move the marker around like crazy (using the arrow keys), and randomly hit "restart frame", it should crash very soon. What this means for the game, is that it sometimes crash when you close the application. But there's also many cases when it crashes without any frame actually being restarted.
note: I didn't do anything to prevent the marker being out of the screen area. It starts at the top/left corner, so just keep it within the window area.
I wonder why this happens. I can't think of anything I did wrong. In either case, I will not be able to release Knytt before this is fixed.
Edit: I've tried more. What I do not get, is that now I can't make it crash. Sometimes it crashes very easily, and sometimes it doesn't at all. But I've noticed it with Knytt too. Sometimes it works perfectly for a lot of time... then it starts to crash often. It's like it happens in periods. All I know is that I've tried the compiled version on different PC's with different specs, and I've had crashes on them all. I don't understand this