Hi Carsten,

On Thu, Jan 22, 2009 at 6:07 PM, Carsten Neumann <[email protected]>wrote:

>
> [SNIP - warnings about live containers]


Well, whatever that means... ;-)
Still a long way to go learning the new architecture. When will you prepare
a presentation about OpenSG 2.0 and release the slides for download? :-D
(I thought about asking for documentation, but I guess that would be asking
too much ;-))


> quick question: How do you exit the tests? Do you click on the "X" icon?
> Does it also happen if you exit by pressing "ESC"?
> The problem with glut programs is that glutMainLoop does not return, so
> one has to make sure the cleanup happens on every path out of the
> program. For the examples it is only cleanly done when pressing "ESC". A
> better solution would perhaps be to register an atexit handler that does
> the cleanup after osgInit (to make sure it runs before the atexit
> handler osgInit registers and which calls osgExit).


Doh, I wish every problem could be solved as easily as this one.
Indeed that did the trick. I was clicking the X button on the GLUT window,
and if I press "ESC" it doesn't crash.
As simple as it was, I would never have thought of it. Thanks.

BTW it didn't go completely without warnings, it still complained about the
following:

WARNING: SharePtrGraphOp::setIncludes: Unrecognized type [Material].
> WARNING: SharePtrGraphOp::setIncludes: Unrecognized type [StateChunk].
> WARNING: ThreadManager::shutdown: thread [OSGAppThread|02D97828] is still
> alive ([0]).
> WARNING: ThreadManager::shutdown: lock [OSG::Log::_pLogLock|02F8AAF8] is
> still alive
> WARNING: ThreadManager::shutdown: lock [OSGTMStoreLock|02713AE0] is still
> alive
>

Thanks for the help!
Thiago
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to