Hello Thiago,
Thiago Bastos wrote:
> I'm experimenting with OpenSG 2.0 on Windows 32bits. After getting past
> the compilation stage, I tried some of the example and test
> applications. Most, if not all applications, seem to work correctly, but
> strangely most are crashing at exit.
>
> For instance, "01hello.exe" works and exits without crashing, though it
> prints a lot of warnings (very similar to the warnings issued by the
> applications that are crashing).
>
> But then, if I run and close "02move.exe" (and 80% of the other
> programs) it prints a lot of warnings and then crashes during cleanup.
>
> These are the warnings (the first two lines are print during
> initialization, the rest during cleanup):
[SNIP - warnings about live containers]
> I've also attached the call stack at crash time.
>
> The same applications with the same svn revision (1680) work correctly
> on Linux here.
> Any ideas?!
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).
Hope it helps,
Carsten
------------------------------------------------------------------------------
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