Problem with GlutGameMode

I need help with the “GlutGameMode”
I use it to Enter the Fullscreen mode.
After I left the Game mode “LeaveGameMode”
Windows told me that something went wrong.
It is only an small Program becouse I only
want to test this mode.
If you like to try it on your System here are
the Links:

The Programm:

The Code:

Please let me know if somebody can figured out what
is going worng in my Program.

thanks a lot -< bye >- Mnemno

Yup, you leave game mode, but you dont leave the program. Either

a: put exit(0); after the glutLeaveGameMode()


b: go back into a window.

thanks a lot it works well now !!!