Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 02 Jun 2003 22:00:54 +0200 From: Amikam Liss Subject: A problem with glut in cygwin To: cygwin AT cygwin DOT com Message-id: <01d301c32941$acf5aa60$f070003e@amikam> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Content-type: text/plain; charset=windows-1255 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal 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 dll_crt0 AT 0 () 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/