Hi Anders,
On 3/12/10 22:05 , Anders Backman wrote:
> This is a WINDOWS problem only.
>
> ...
> To reply Juan, the problem of using static variables for destruction is that
> it causes exactly this problem :-)
>
> If the static variable is defined in the MAIN-APP, it works just fine. In
> the s
Well, I have done some thorough googling on the matter, and it is a general
problem in dll-vs-atexit-static variables problem.
So it is most probably not a bug in OpenThreads. Lets close that issue.
Each dll has its own "order of destruction" for static variables, combine
that with that each dll-h
Hi Anders,
I'm pretty sure is not a threading issue / bug in OpenThreads, I
believe it's an issue of proper management of the destruction order of
objects/implementations. When you use singletons you have to be
particularly careful if you are relying upon automatic clean up
provided by the static
Hi Anders
In that case I'm afraid I cannot help you because I seldom use Windows
and I don't know enough about dll termination issues.
Sorry,
Juan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cg
This is a WINDOWS problem only.
It works under Linux, MacOSX just fine.
Sorry for not pointing it out more clearly.
To reply Juan, the problem of using static variables for destruction is that
it causes exactly this problem :-)
If the static variable is defined in the MAIN-APP, it works just fi
Hi Anders,
I've tried your app on Linux and works fine. I've also reviwed the code
and it seems to be OK. However I don't know about Windows dll stuff so
you might be overlooking something (atexit called after process threads
are cancelled?). In any case, as Robert says, the atexit function can
Hi Anders,
I have just had a look at your test example and it fails to compile
under linux due to the atexit() method.
Reviewing the code I'm a bit confused why you are using atexit()
method at all. The OSG itself has lots of threads, objects and
singleton created in difference places at differe
Hi Anders,
I haven't tested out the app yet, but my first thought is that perhaps
the clean up on exit is destroying the thread objects + implementation
prior to the singleton destructor cleaning up. I have seen a number
of issues like this over the years, and one just has to be careful
about wha
Hi all.
Im using OpenSceneGraph 2.8.3 under windows. Visual studio 2008.
However, this problem has been around for at least 2 years, so it existed in
previous versions too.
I have finally after two years? isolated the bug I reported quite a while
back:
http://lists.openscenegraph.org/htdig.cgi/os
9 matches
Mail list logo