Description speaks for itself. While playing the Windows 10 version, any time I alt-tab to the desktop, or try to open the Settings in the game, the game will crash to the main menu, or sometimes to the desktop. I'm also playing on Realms, one that I own.
Thank you for your report!
However, this issue has been closed as a Duplicate of MCPE-19393.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki