Hi, About my program: My main fucntion is in Main_wMultipleBackhoes_wKeyboardhandler.cpp Keyboard handler in MyKeyboardhandler.cpp and .h (obviously) TextBox in textBox.cpp and .h
What I am trying to do is load a 3D model from a number of .ac files and then create multiple instances of this. The 3D model loading part is done in the class BackhoeClass.cpp. I also have a keyboardhandler to move the object around. And the TextBox is to annotate which backhoe is under keyboard control. ----------------------------------------------------------------------------------- The problem I'm getting: The backhoes move just fine and it doesn't hang. But when I added text annotation to the scene I get a "Debug assertion failed" error. This sometimes happens after a very long time and sometimes after a few keyboard taps. I'm still confused by its variable nature ------------------------------------------------------------------------------------ What I've tried so far: I tried walking through my code a number of times and added cout statements to check if its doing the right thing. But I cannot seem to figure out what I am doing wrong. So I was hoping if you can take a look at some of my code and point me in the right direction. I'm also attaching a screen shot of the error I'm getting in case that helps. I'm just starting off with osg coding so pardon me if some of my errors are too dumb. (I'm not sure if I can attach the 3D model files because of the upload size limit. But if that would help then I can do that as well) Thank you! Cheers, Sanat ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27258#27258 Attachments: http://forum.openscenegraph.org//files/textbox_953.h http://forum.openscenegraph.org//files/textbox_193.cpp http://forum.openscenegraph.org//files/mykeyboardhandler_348.h http://forum.openscenegraph.org//files/mykeyboardhandler_677.cpp http://forum.openscenegraph.org//files/main_wmultiplebackhoes_wkeyboardhandler_315.cpp http://forum.openscenegraph.org//files/backhoeclass_626.h http://forum.openscenegraph.org//files/backhoeclass_567.cpp http://forum.openscenegraph.org//files/osg_test_error_168.jpg _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

