Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrow Key crashes GLUI program #2

Open
josch opened this issue Sep 13, 2015 · 0 comments
Open

Arrow Key crashes GLUI program #2

josch opened this issue Sep 13, 2015 · 0 comments
Labels

Comments

@josch
Copy link
Contributor

josch commented Sep 13, 2015

https://sourceforge.net/p/glui/bugs/3/

original report

Click into the graphics window and hit an arrow key,
program crashes.

reply 1

Is the platform Win32 or X11?
(I don't see this on w2k with CVS GLUI)

reply 2

I had the same problem running under WIN XP. Using a debug
version of the GLUI library, I have discovered that the
crash occurs in glui_special_func in glui.cpp

Looks like the value of glut_window->glut_special_CB is not
verified before it is invoked. I have invoked
set_glutSpecialFunc at start up but I passed a null to it.

reply 3

I went ahead and prefixed all the calls to
glut_window->glut_xxx_CB in glui.cpp with checks for null
just to be on the safe side.

@josch josch added the bug label Sep 13, 2015
m-7761 pushed a commit to m-7761/glui that referenced this issue Jun 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant