My Windows Store game crashes with an unhandled Win32 exception! I raised this issue already in another post, but wanted to re-open a more specific topic here, because I’m still in need of help. I’m using the LoadingScreen.Load() to load my next level, where content is unloaded and loaded. Well, my first two gamescreens using the Load method successfully load with no issues. It’s not until I load my 3rd or 4th screens that the game SOMETIMES crashes and throws an Invalid Handle and Assertion Failed exception. If the game does manage to load the next screen, it makes a really load, distorted, sharp-sound like the game is about to crash and burn!
I have traced through and set break-points all through my ScreenManager, GameScreen, and LoadingScreen classes to make sure everything is being called properly. I have even removed sounds/re-processed sounds and textures to make sure there was no funny business there, but the problem still persists. One funny thing to note is, when I removed a suspected sound from loading, I would get that specific sound playing during the activation of the problem screen in place of the distorted sound. Is this an indication of a memory leak or assets not being unloaded properly?
If anyone can please help it would be greatly appreciated, because my production has come to a halt over the past few weeks as I comb over every community issue post and google searches trying to resolve this weird issue!
Thanks!