Hello Marcus,
Marcus Lindblom wrote:
> Carsten Neumann wrote:
>
>> I can't reproduce it on linux with the current trunk, but I don't think
>> anything has changed in that area since r1563. Even valgrind is happy
>> and reports nothing.
alright, on windows (vs 2008 express) I can reproduce it (r1577).
BTW is there a way to start the debugger from a command line (similar
like doing gdb ./testSimpleSceneManager)? It is a bit painful having to
create a new project and coax it into debugging an existing program that
it did not really build itself.
> Ok. The crash seem to indicate that the memory already has been freed.
>
>> Can you try manually calling osgExit or try this
osgExit does not help, but gives a different stack trace that goes to
the d'tor of a std::vector (size 1270) of boost::functions, all of them
appear to be empty. The crash is in destroying these boost::functions.
Dunno looks like a red herring to me.
> [snip]
>
>> and see if it makes a difference?
the extra scope makes no difference either.
> I'll get right on it on monday, back at work. :)
enjoy the weekend ;)
>> I'm wondering if the d'tors for local
>> variables in main run at a different point in time in relation to the
>> exit handlers on windows?
>
> I don't think so. The exit-handlers run post-main, after any locals in
> main() have been destroyed. That's how it's supposed to be, right?
>
> Actually, just causing a call to getDefaultMaterial (by doing
> makeTorus()) triggers this. (That's how I got the problem in the first
> place.)
strange, when looking at this in the debugger the most notable thing is
that the _type object seems to be botched, it has a null prototype
pointer and no strings describing it, weird. I'll look some more into
this tomorrow unless of course someone beats me to it ;)
regards,
Carsten
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users