Carsten Neumann wrote: > Bart Kevelham wrote: > >> I've checked with the debug version of freeglut. >> It hangs/blocks on the call to RedrawWindow() that's called from >> fghcbDisplayWindow() >> >> I've copied the callstack below. >> >> freeglut.dll!fghcbDisplayWindow(tagSFG_Window * window=0x031d2ae0, >> tagSFG_Enumerator * enumerator=0x0459f620) Line 234 C >> freeglut.dll!fgEnumWindows(void (tagSFG_Window *, tagSFG_Enumerator *)* >> enumCallback=0x1000eaa0, tagSFG_Enumerator * enumerator=0x0459f620) >> Line 388 + 0xd C >> freeglut.dll!fghDisplayAll() Line 251 + 0xe C >> freeglut.dll!glutMainLoopEvent() Line 1000 C >> vhdMetaEngine_md_dbg.exe!vhdOpenSGViewerServiceBody::_updateImplem() >> Line 382 C++ >> > [snip] > > I know little about the win32 api, but looking at the documentation at > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/pantdraw_81pz.asp > seems to suggest that the call will block until the window has received > a WM_PAINT message (because the flag RDW_UPDATENOW is passed to > RedrawWindow). This seems to suggest to me, that there might be a > problem with window event processing ? > I somehow had hoped that the backtrace would contain a call to OpenSG, > or a NULL pointer that would have given a better clue as to what goes > wrong :( > Just a theory:
If the same thread that does this call is responsible for handling the win32-message loop, it might be a problem. However, that would suggest freeglut has a bug. One could perhaps post a WM_PAINT message before calling the blocking function and see what happens. It might fix it (on the grounds that the message is in the queue and thus allows the function to return). /Marcus ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
