Re: [osg-users] dynamic_cast of referenced objects

2010-02-10 Thread Robert Osfield
Hi Keven, It sounds it you were modifying the text on each frame without setting the DataVariance to DYNAMIC, and you were running the viewer multithreaded so the draw dispatch ended overlapping with the update of the text. Robert. On Tue, Feb 9, 2010 at 11:57 PM, Kevin Wilder

Re: [osg-users] dynamic_cast of referenced objects

2010-02-09 Thread Kevin Wilder
Hi, For anyone who is still following this thread (or for anyone who stumbles upon it while trying to solve a similar problem in the future), I figured I'd post my findings: The bit about the object reference pointers vs. standard C++ pointers turned out to be a red herring. Seems the crashes

Re: [osg-users] dynamic_cast of referenced objects

2010-02-09 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
@lists.openscenegraph.org Subject: Re: [osg-users] dynamic_cast of referenced objects Hi, For anyone who is still following this thread (or for anyone who stumbles upon it while trying to solve a similar problem in the future), I figured I'd post my findings: The bit about the object reference pointers

Re: [osg-users] dynamic_cast of referenced objects

2010-02-08 Thread Kevin Wilder
Hi, Thank you both for all of your help! Cheers, Kevin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=23805#23805 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] dynamic_cast of referenced objects

2010-02-08 Thread Trond Vidar Stensby
HomerSimpson wrote: My project is throwing an occasional unhandled win32 exception error and I've been trying to figure out why. One thing you should check is if you have any raw C++ pointers pointing to objects that are also pointed to by ref_ptr's. Accessing the object through the raw

Re: [osg-users] dynamic_cast of referenced objects

2010-02-06 Thread Tim Moore
On Sat, Feb 6, 2010 at 4:07 AM, Kevin Wilder kevin_wil...@hotmail.comwrote: Hi, ... I came upon a passage in the OpenSceneGraph Quick Start Guide that says: Be careful when returning the address of an object from a function. If you do this incorrectly, the ref_ptr storing the memory address

Re: [osg-users] dynamic_cast of referenced objects

2010-02-05 Thread Jean-Sébastien Guay
Hi Kevin, My project is throwing an occasional unhandled win32 exception error and I've been trying to figure out why. There is no consistency in the timing so I assume that I have a dangling pointer somewhere. I doubt you're on the right track with changing standard pointers to ref_ptrs in