[ pyopengl-Bugs-1594244 ] win32: hang after main window close
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1594244, was opened at 2006-11-10 16:58 Message generated for change (Comment added) made by dmurmann You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1594244&group_id=5988 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: GLUT Group: v3.0.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: David Murmann (dmurmann) Assigned to: Nobody/Anonymous (nobody) Summary: win32: hang after main window close Initial Comment: After the main GLUT window is closed the process stays alive. This is actually documented behavior (in the top comment in OpenGL/GLUT/special.py), but it differs from PyOpenGL 2, therefore I think it should be fixed. ---------------------------------------------------------------------- >Comment By: David Murmann (dmurmann) Date: 2006-11-13 04:03 Message: Logged In: YES user_id=1455846 Yeah, this works, i tried a very similar fix (although i did it in my app), but it seems very much like a hack. It seems the question is not how 2.x fixed it (apparently it didn't address this altogether), but what does 3.x wrong to stall the process. A normal GLUT program doesn't need to do this, so why should a python wrapper need this check? Looks to me like somewhere something should be cleaned up, or weakref'd or something similar to allow the process to die, but i couldn't find anything yet... ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2006-11-12 23:48 Message: Logged In: YES user_id=34901 Weird thing is that I can't see *how* PyOpenGL 2.x fixed it when I spelunk through the code. It seems to have "just worked". I've added code to "fix" it, basically I start a .5s timer in glutMainLoop() that checks for a NULL context and kills the process if it's discovered. Anyway, give it a try with latest CVS and let me know if it's suitable for you (or if you have a better approach in mind). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1594244&group_id=5988 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net