I have been using freeglut 2.8.1 under win7/64 for about 2 weeks now.
I have discovered a bug in the menus. I have a simple program that will easily reproduce the bug.

First, you compile and link this code using VS2010. Produce a 32 bit exe.
Then run the app in debug mode.
Right click on the window and let the menu pop up.
Select a menu entry that is entirely on the window.

Life is good.

Position your mouse along the lower edge of the window and
right click.
Again, if you select a menu entry that is entirely on the window there
are no problems.

But if the menu entry you select is off the lower edge of the window, you 
get an ACCESS VIOLATION inside of freeglut_menu.c in method 

I searched the archives and couldn't find a bug listing for this.

Any thots? here's the code.


// fgBUG.cpp : Defines the entry point for the console application.

#include "stdafx.h"
#include <GL/freeglut.h>

static void DisplayCallback(void)
   glClearColor(0.0, 0.0, 0.0, 0.0);

void InitApplication(int argc, char* argv[])
   glutInit(&argc, argv);

   glutInitWindowSize(800, 800);
   glutInitWindowPosition(40, 140);
   glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
   glutCreateWindow("Freeglut Menu Bug");


void MenuHandler(int Item)
   case 0: break;
   case 1: break;
   case 2: break;
   case 3: break;
   case 4: glutLeaveMainLoop(); break;

void InitMenu(void)


   glutAddMenuEntry("TEST 0", 0);
   glutAddMenuEntry("TEST 1", 1);
   glutAddMenuEntry("TEST 2", 2);
   glutAddMenuEntry("TEST 3", 3);
   glutAddMenuEntry("QUIT", 4);


int main(int argc, char* argv[])
   InitApplication(argc, argv);


   return 0;