Carsten Neumann wrote: > 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.
Yup .. Do 'devenv /?' and see the options, alternatively you can do 'attach to process' from the debug menu in the IDE. I think you also can create an empty project and enter 'testsimplescenemanager' in the debug settings on the project then just start it in debug mode (i.e. F5). > 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. When I was looking in the debugger it was trying to do stuff on a null object. IIRC it was trying to clean up the default material. There is a function for doing explicitly that (which is registed using a boost::function) and I don't think it used ref-counts, it just called delete (which invites problems, I try to avoid it like the plauge, which has worked well). So, anyway, I do suspect that that happens twice, although I didn't have time to pursue it further yesterday. > 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 ;) My guess is that the object is being destroyed twice. (I'm always suspicious of 0xfeeefeee patterns and numbers around 3.2*10^9 .. :) At least when doing a debug build, you get those kind of patterns in freed memory. Perhaps some tracing on destructor calls might help. Cheers, /Marcus ------------------------------------------------------------------------- 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
