Dear opensg users,
I am having an opensg 1.8 setup where a scenegraph is being drawn by the gui
thread and another thread is manipulating the graph in the mean time. As I
understand opensg architecture, this is one of the applications open sg is
designed to work with.
I am encountering the following problem:
In a special object I am storing refptrs to transform cores in the scene
graph. I would like to manipulate the matrices of the transform cores
directly by another thread.
Now a exeption is occurring whenever I am setting up an osg::Matrix with my
own values and try to assign them to the stored transform core:
Class myclass
{
float x11, ..., x44;
TransformRefPtr myTransform;
...
__forceinline void manipulateTransform()
{
osg::Matrix newMatrix(x11, ..., x44); <<-- throws an exeption(!!!)
beginEditCP(myTransform);
myTransform->setMatrix(newMatrix);
endEditCP(myTransform);
};
};
For some reason the error seems to occur one or two lines before the
beginEditCP() call. (Btw We are doing a lot of __forceinline AND in the
single threaded version it is working very well). What might I be doing
wrong?
Thank you in advance,
George.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users