Hi, I have a problem with glut, I will be happy if someone can help me: I have Windows98, I installed cygwin yesterday. I wrote a small progam in OpenGL using glut. I compiled the program with this command: (the program - triangle.c) gcc triangle.c -o triangle -lOpenGL32 -lGLU32 -lglut32 (I linked with the libraries of windows) Now when I run the executable triangle.exe, the program is running ok (a rotated trinagle), but when I close the window, the programm hangs, the file triangle.exe doesn't finish to run. This is the call stack: #0 0xbff768a1 in KERNEL32!CallNamedPipeW () #1 0xbff7427f in OpenEventA () #2 0x78844033 in wglSwapBuffers () #3 0x004011ae in ?? () #4 0x004011d7 in ?? () #5 0x10004ac9 in glutMainLoop () from /cygdrive/c/WINDOWS/SYSTEM/glut32.dll #6 0x1000490f in glutMainLoop () from /cygdrive/c/WINDOWS/SYSTEM/glut32.dll #7 0x0040134f in ?? () #8 0x61007408 in cygwin1!__assert () from /usr/bin/cygwin1.dll #9 0x610076ed in [EMAIL PROTECTED] () from /usr/bin/cygwin1.dll #10 0x00402aa2 in ?? () #11 0x0040103c in ?? () #12 0xbff8b565 in KERNEL32!FileTimeToDosDateTime () #13 0xbff8b417 in SetErrorMode () #14 0xbff89dda in KERNEL32!BeginUpdateResourceA () Cannot access memory at address 0x83941fec
The main function: int main(int argc,char *argv[]) { glutInit(&argc,argv); glInit(); glutMainLoop(); return 0; } What I can do to solve the problem? Thank you Amikam Liss -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/